#DM user who used command
1 messages · Page 1 of 1 (latest)
-d disnake.Member.send
await send(content=None, *, tts=False, embed=None, embeds=None, file=None, files=None, stickers=None, delete_after=None, nonce=None, suppress_embeds=False, allowed_mentions=None, ...)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).
Sends a message to the destination with the content given.
The content must be a type that can convert to a string through `str(content)`.
At least one of `content`, `embed`/`embeds`, `file`/`files`, `stickers`, `components`, or `view` must be provided.
To upload a single file, the `file` parameter should be used with a single [`File`](https://docs.disnake.dev/page/api.html#disnake.File "disnake.File") object. To upload multiple files, the `files` parameter should be used with a [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.11)") of [`File`](https://docs.disnake.dev/page/api.html#disnake.File "disnake.File") objects. **Specifying both parameters will lead to an exception**.
To upload a single embed, the `embed` parameter should be used with a single [`Embed`](https://docs.disnake.dev/page/api.html#disnake.Embed "disnake.Embed") object. To upload multiple embeds, the `embeds` parameter should be used with a [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.11)") of [`Embed`](https://docs.disnake.dev/page/api.html#disnake.Embed "disnake.Embed") objects. **Specifying both parameters will lead to an exception**.
thanks!
you're welcome
how can I get their response?
-d disnake.on_message
disnake.on_message(message)```
Called when a [`Message`](https://docs.disnake.dev/page/api.html#disnake.Message "disnake.Message") is created and sent.
This requires [`Intents.messages`](https://docs.disnake.dev/page/api.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/page/ext/commands/api.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/page/api.html#disnake.Intents.message_content "disnake.Intents.message_content") for more information.
or
does on_message require you to specify the content?
wait_for(event, *, check=None, timeout=None)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).
Waits for a WebSocket event to be dispatched.
This could be used to wait for a user to reply to a message, or to react to a message, or to edit a message in a self-contained way.
The `timeout` parameter is passed onto [`asyncio.wait_for()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.wait_for "(in Python v3.11)"). By default, it does not timeout. Note that this does propagate the [`asyncio.TimeoutError`](https://docs.python.org/3/library/asyncio-exceptions.html#asyncio.TimeoutError "(in Python v3.11)") for you in case of timeout and is provided for ease of use.
In case the event returns multiple arguments, a [`tuple`](https://docs.python.org/3/library/stdtypes.html#tuple "(in Python v3.11)") containing those arguments is returned instead. Please check the [documentation](https://docs.disnake.dev/page/api.html#discord-api-events) for a list of events and their parameters.
This function returns the **first event that meets the requirements**...
Can also be used if you wanna keep it within that same function