показывает всё время что нету id Discord Python

Доброе утро! Я столкнулся с проблемой то что у меня показывает то что в файле varify.json когда нету id он пишет то что нету, а когда он есть он все равно пишет что его нету, не могу понять что я делаю не так.

@bot.command()
async def myprofile_parody(ctx):
   with open("verifyded.json", "r") as f:
      verifyded = json.load(f)
   with open("verify.json", "r") as f:
      verify = json.load(f)
   with open("testver.json", "r") as f:
      testver = json.load(f)
   author = ctx.message.author
   user_name2 = author.id
   BagFix = f'{author.id}'
   BagFix2 = f'"{author.id}"'
   if user_name2 not in verify:
      await ctx.reply("Yes")
   else:
      async with aiohttp.ClientSession() as session:
         request2 = await session.get(f'http://all-roblox-parody.kchessub.beget.tech/accounts/{verify[BagFix]}ach.json')
         request = await session.get(f'http://all-roblox-parody.kchessub.beget.tech/accounts/{verify[BagFix]}.json')
         parodyall = await request2.json() # Convert it to a JSON dictionary
         parodyall2 = await request.json() # Convert it to a JSON dictionary
      embed=discord.Embed(title=f"{parodyall2[verify[BagFix]]['Name']} - профиль пародии", color=0xb39b13)
      embed.set_author(name=f"{parodyall2[verify[BagFix]]['Name']}", url="http://all-roblox-parody.kchessub.beget.tech/")
      embed.add_field(name="Money", value=f"{parodyall[verify[BagFix]]['Money']}", inline=True)

      embed.add_field(name=f"Буксы", value=f"{parodyall[verify[BagFix]]['Redix']}", inline=True)
      embed.add_field(name="Топ", value=f"{parodyall[verify[BagFix]]['TOP_Leader']}", inline=True)
      embed.set_thumbnail(url=f"http://all-roblox-parody.kchessub.beget.tech/{parodyall2[verify[BagFix]]['Avatar']}")
    
   
      await ctx.reply(embed=embed)

Если в файле нету ID пользователя то должно быть await ctx.reply("Yes"), а если есть то await ctx.reply(embed=embed)


Ответы (0 шт):