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

0x78f1935 picture 0x78f1935  路  20Comments

VoxelPrismatic picture VoxelPrismatic  路  16Comments

Yuvira picture Yuvira  路  18Comments

wolfclaws picture wolfclaws  路  17Comments

AceKiron picture AceKiron  路  23Comments