因此,每次我运行这段代码时,都会出现上述错误,我想知道这是否是我正在做的事情?
ive尝试完全撤销它,但不断出现
之类的错误。AttributeError: 'Client' object has no attributes 'get'
这是完整的代码:
@client.event
async def on_ready():
global Loop
print("active")
execute_query("mydatabase.db", "UPDATE Members SET expPersonalBoost = 1")
level_up(1, 1)
activity=discord.Game(name="BOTNAME %s" % (str(buildVersion)))
await client.change_presence(activity=activity)
channel = client.get_channel(557970901614985226)
LBoardExp = await channel.get_message(558236923181793280) #ERROR_HERE
LBoardBal = await channel.get_message(558237158763397130)
预期结果是代码更改了消息的内容,但是却出现了属性错误