Skip to content
Advertisement

on_message event disables all the bot commands

I have an on_message event to prevent users with “Muted” role from sending messages:

JavaScript

But with this event bot doesn’t react to all the commands. They are not working. Example command:

JavaScript

Advertisement

Answer

You have to use this:

JavaScript

So, your event will look like this:

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