#i wont make @bot.slash_command
1 messages · Page 1 of 1 (latest)
i wont make @bot.slash_command
-d on_message
disnake.on_message(message)```
Called when a [`Message`](https://docs.disnake.dev/en/latest/api/messages.html#disnake.Message "disnake.Message") is created and sent.
This requires [`Intents.messages`](https://docs.disnake.dev/en/latest/api/clients.html#disnake.Intents.messages "disnake.Intents.messages") to be enabled.
Warning
Your bot’s own messages and private messages are sent through this event. This can lead cases of ‘recursion’ depending on how your bot was programmed. If you want the bot to not reply to itself, consider checking the user IDs. Note that [`Bot`](https://docs.disnake.dev/en/latest/ext/commands/api/bots.html#disnake.ext.commands.Bot "disnake.ext.commands.Bot") does not have this problem.
Note
Not all messages will have `content`. This is a Discord limitation. See the docs of [`Intents.message_content`](https://docs.disnake.dev/en/latest/api/clients.html#disnake.Intents.message_content "disnake.Intents.message_content") for more information.
No problem
-d description
Most calls to the ArgumentParser constructor will use the description= keyword argument. This argument gives a brief description of what the program does and how it works. In help messages, the description is displayed between the command-line usage string and the help messages for the various arguments:
>>> parser = argparse.ArgumentParser(description='A foo that bars')
>>> parser.print_help()
usage: argparse.py [-h]
A foo that bars
options:
-h, --help show this help message and exit
``` By default, the description will be line-wrapped so that it fits within the given space. To change this behavior, see the [formatter\_class](https://docs.python.org/library/argparse.html#formatter-class) argument.
cont.