Skip to content
Advertisement

Discord.py Issue

JavaScript

Whenever I run the following code for a discord bot after I type a message so that the bot sends the link to the image I get the error:

JavaScript

I am pretty new to coding, so sorry if it’s something super simple!

Advertisement

Answer

'Messageable.send' was never awaited tells you what went wrong here.

The library is async so if you want to send a message, to state an example here, you have to await it.

Your new code:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement