diff options
author | 2023-04-28 22:27:50 +0800 | |
---|---|---|
committer | 2023-04-28 22:27:50 +0800 | |
commit | 5f837400879e1dc87ed0dda9ef0e05b21ca0d3f4 (patch) | |
tree | edbb4a31607a7fe32c838f8eaa2fc31b15e42493 | |
parent | Add on-message-event.md (diff) |
Update bot/resources/tags/on-message-event.md
Co-authored-by: Canttuchdiz <[email protected]>
-rw-r--r-- | bot/resources/tags/on-message-event.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/on-message-event.md b/bot/resources/tags/on-message-event.md index f3a0a296c..dde1c7b3b 100644 --- a/bot/resources/tags/on-message-event.md +++ b/bot/resources/tags/on-message-event.md @@ -5,7 +5,7 @@ embed: When defining an `on_message` event handler, prefix commands may stop working as it overrides the default behaviour of the `on_message` event. -Instead, use [`@bot.listen`](https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.Bot.listen) to add a listener. Listeners get added alongside the default `on_message` event which allows you to respond to message events and prefix commands at the same time. +Instead, use [`@bot.listen`](https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.Bot.listen) to add a listener. Listeners get added alongside the default `on_message` event, preventing an override of on_message, and allowing prefix commands to still be invoked. ```python @bot.listen('on_message') |