Discord.py: client.send() issues

Created on 21 Apr 2019  路  4Comments  路  Source: Rapptz/discord.py

sorry if this is documented, but i supposedly "updated" my code and now it says client has no attribute send. please help.

question

Most helpful comment

idc about my bad grammar im just trying to get this done with.

All 4 comments

idc about my bad grammar im just trying to get this done with.

This is in fact documented, much like everything else in the library. If you were to read the documentation you would see that it's not Client.send(). It is in fact Channel.send() or Context.send().

This is not an issue with discord.py.
GitHub issues for this repository should be used to report issues with this library.
They are not a medium for requesting help with Python.
For further help specific to using this library, you should join either the official discord.py server or the Discord API server, as the README recommends.

As the migration guide outlines, Client.send_message has been changed to Messageable.send.
This means you need use an object of a type that implements Messageable.
Client is not one of those classes.
See https://discordpy.readthedocs.io/en/latest/migrating.html#sending-messages.

For future questions like this, you should join either the official discord.py server or the Discord API server for help, as the README also links.

sorry, but i dont understand. can you give me a simple explanation?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jzburda picture jzburda  路  3Comments

PicklesJars picture PicklesJars  路  3Comments

superloach picture superloach  路  3Comments

AraHaan picture AraHaan  路  3Comments

synbitz picture synbitz  路  3Comments