Skip to content

Most Efficient Way of Monitoring Messages in Specific Guild #396

Answered by JU5TDIE
flakesbest asked this question in Help
Discussion options

You must be logged in to vote

That's because on_message event also catches direct messages. Try with

@bot.event
async def on_message(message):
    if message.guild and message.guild.id == GUILDID:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flakesbest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants