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

ams2990 picture ams2990  路  14Comments

TomOrth picture TomOrth  路  15Comments

Shea4 picture Shea4  路  21Comments

ThePiGuy24 picture ThePiGuy24  路  17Comments

imayhaveborkedit picture imayhaveborkedit  路  58Comments