diff options
author | 2023-04-29 22:49:45 +0800 | |
---|---|---|
committer | 2023-04-29 22:49:45 +0800 | |
commit | 3815028b9afd36f83539ca65764ec166c1f0a443 (patch) | |
tree | c803782b78cd4eb39c14ec2128cd20e995f2c1de | |
parent | Apply suggestions from code review (diff) |
Remove example of not recommended solution
-rw-r--r-- | bot/resources/tags/on-message-event.md | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/bot/resources/tags/on-message-event.md b/bot/resources/tags/on-message-event.md index dd3093363..fe18a453a 100644 --- a/bot/resources/tags/on-message-event.md +++ b/bot/resources/tags/on-message-event.md @@ -13,12 +13,4 @@ async def message_listener(message): ``` You can also tell discord.py to process commands as usual after you're done processing messages with [`bot.process_commands()`](https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.Bot.process_commands). However, this method isn't recommended as it does not allow you to add multiple `on_message` handlers. -```python -async def on_message(message): - ... # do stuff here - - await bot.process_commands(message) -``` - If your prefix commands are still not working, it may be because you need the `message_content` intent. See `!tag message_content` for more info. |