Skip to content
Discussion options

You must be logged in to vote

There are a few issues with this code as-is.

  1. author is of type discord.Member (or discord.User). You cannot compare this to a numeric ID. If you want to compare it with an ID you need to do author.id == 123456...
  2. There is no method called delete_message in any channel class.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
4 participants