@commands.command(name="manualverify") member = membertag
var6 = discord.utils.get(member.guild_roles, name =Administrator\Desktop\xcopy bot\cogs\main.py", line 447, in manualve
= str(member.id) if new_user not in voice_data[guild_id]: #this adds a new user to the guild dict if they're not in it yet
voice_data[guild_id][= voice_data[guild_
当我试图从一个AttributeError: 'GuildCluster' object has no attribute 'guilds'对象获取guilds属性(它是一个ReverseRelation我已经试着检查关系,外键,以重命名属性,以防它已经被使用。我还试图在Guild类之前定义GuildCluster类,它返回相同的错误。下面是GuildCluster模型(它的一部分): class Met
但是它显示了这个错误AttributeError:'Interaction‘对象没有属性'voice_client’--我查看了https://discordpy.readthedocs.io/并尝试手动添加它@bot.tree.command(name="disconnect", description="Disconnect from a vc",guild=guild)
async def d
ctx.loop.create_task(ctx.get_all_members())
for member in ctx.guild.members:bot.run("My Token Here", bot=False)第10行,ctx.guild.members中成员的get_all_members : AttributeError</e
当有人离开服务器时,我尝试重新设置message.author,但这没有帮助!我对如何阻止这些错误没有任何想法!Users/Evan/PycharmProjects/Bot/bot.py", line 107, in on_messageAttributeError}')
print(f"User ID: {client.user.id}"