await client.change_presence(game=discord.Game(name="Making a bot"))
async def on_message:\Users\Sigmanificient\3D Objects\PyNG\discord_bot.py", line 7, in on_readyType
this works fine, dont think it matters hereasync def on_ready():
await bot.change_presence我看到了许多关于这个错误的其他问题,但所有这些问题都使用了更复杂的代码,我只是没有足够的经验来理解。 我怎么才能让它真正做到这件事呢?
discord.py文档有一个spotify类(),我想知道如何将此活动设置为概要文件。文档中没有示例。我尝试在on_ready事件中使用此活动。client.event print("Bot was connected to the server") await bot.change_presencerun_event File "main.py", line 13, in
will return the error: 'NoneType' object has no attribute 'attribute'
await self.bot.change_presence(activity=discord.Streaming(name='''Author: Author''', url='https://www.youtube.com/watch?
我有一个用Discord.py编写的预生成代码,它使用Heroku托管,目前它是在线的,只是每当我使用一个命令时,它就什么也不返回,但是当在本地使用Notepad++运行它时,这些命令工作得很好。await bot.change_presence(activity=discord.Game(name="Discord"))@bot.command()
async def ping(ctx, description=f'Im an Utility bot, that