Discord.py: Message.edit raises TypeError about too many positional arguments on rewrite

Created on 27 May 2017  路  1Comment  路  Source: Rapptz/discord.py

May be an issue with ext as I haven't tested with regular.

Can be reproduced by the following snippet

msg = await ctx.send('Test')
return await msg.edit('aaa')

Above snippet results in the following error

TypeError: edit() takes 1 positional argument but 2 were given
invalid wontfix

Most helpful comment

It's a keyword only argument. msg.edit(content='aaa')

>All comments

It's a keyword only argument. msg.edit(content='aaa')

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TunaHobby picture TunaHobby  路  3Comments

jzburda picture jzburda  路  3Comments

Spyder-exe picture Spyder-exe  路  3Comments

PicklesJars picture PicklesJars  路  3Comments

tairabiteru picture tairabiteru  路  3Comments