Discord.py: client.change_presence Not working

Created on 17 Apr 2018  路  5Comments  路  Source: Rapptz/discord.py

Hi im trying to set game state with the following.
if message.content.startswith('!!!game'):
await client.change_presence(game=discord.Game('Test'))

When I type !!!game in discord it throws this error.
File "zDBOT.py", line 21, in on_message
await client.change_presence(game=discord.Game("with your mum"))
TypeError: __init__() takes 1 positional argument but 2 were given

Any help would be appreciated.

Most helpful comment

Please close it, then.

All 5 comments

it's
discord.Game(name="x") not discord.Game("x")

Thanks, that was quite obvious.

Can this issue be closed?

Yes. Thank you

Please close it, then.

Was this page helpful?
0 / 5 - 0 ratings