Update change_presence

Discord.py updated their method to use an activity instead. Based on their example, this should work.
doc_update
Etzelia 2018-08-29 11:20:00 -05:00 committed by GitHub
parent bc2ce78238
commit 8db428019f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ async def on_ready():
info = await bot.application_info()
url = oauth_url(info.id)
logger.info("Bot url: %s", url)
await bot.change_presence(game=Game(name=bot_config.status))
await bot.change_presence(activity=Game(bot_config.status))
@bot.event