Interface IMessageCreateGatewayHandler
Sent when a message is created.
The inner payload is a message object with set GuildId, and Author fields.
public interface IMessageCreateGatewayHandler : IGatewayHandler
Remarks
Required Intents: GuildMessages, DirectMessages*
Optional Intents:
-
MessageContent
For receiving Content, Embeds, Attachments and Embeds.
This does not apply to:- Content in messages sent by the bot.
- Content in DMs with the bot.
- Content in which the bot is mentioned.
- Content of messages a message context menu command is used on.
*Ephemeral messages do not use the guild channel. Because of this, they are tied to the DirectMessages intent, and the message object won't include a GuildId or Author.
Methods
HandleAsync(Message)
ValueTask HandleAsync(Message arg)
Parameters
arg
Message