Skip to content
Discussion options

You must be logged in to vote

There are a few issues here.

  1. Events are meant to be async def rather than def. This should have errored earlier.
  2. message.channel.send is a coroutine, so it needs await before it.

It's generally recommended to familiarise yourself with Python before starting to work on a Discord bot. Otherwise you'll end up struggling a lot when playing around with the library.

I am unsure where your SyntaxError is -- it looks syntactically valid. There might have been issue somewhere else, either with a stray character or potentially a transcribing issue. I'm not entirely sure.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MarsMars1
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants