Discord.py: 'Bot' object has no attribute 'say'

Created on 6 Jul 2019  路  3Comments  路  Source: Rapptz/discord.py

i just maked the @bot.command() async def ping(ctx): await bot.say('Pong!') but it's don't working...

Most helpful comment

You are using an old version of the library, 0.16.12, which is unsupported. In order to receive support, it would be a good idea to migrate to the newest version. If you need help migrating, visit the migration guide: https://discordpy.readthedocs.io/en/latest/migrating.html

If you need more help consider joining the official Discord server. Please do not open more issues regarding migration or the old version. Thank you.

All 3 comments

You seem to be using some code for the old version of this library, v0.16.x (aka async, no longer supported), and some for the latest version, v1.x.

As for how to fix your problem, bot.say should be replaced with ctx.send.
For further help, kindly see the support server at https://discord.gg/r3sSKJJ.

You are using an old version of the library, 0.16.12, which is unsupported. In order to receive support, it would be a good idea to migrate to the newest version. If you need help migrating, visit the migration guide: https://discordpy.readthedocs.io/en/latest/migrating.html

If you need more help consider joining the official Discord server. Please do not open more issues regarding migration or the old version. Thank you.

Working! Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

j0hnmeow picture j0hnmeow  路  3Comments

PicklesJars picture PicklesJars  路  3Comments

superloach picture superloach  路  3Comments

Be4Vision picture Be4Vision  路  3Comments

AraHaan picture AraHaan  路  3Comments