Method HandleMessageCreated
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
HandleMessageCreated(Func<DiscordClient, MessageCreatedEventArgs, Task>)
Fired when a message is created. For this event to fire you need the GuildMessages or DirectMessages intent.
public EventHandlingBuilder HandleMessageCreated(Func<DiscordClient, MessageCreatedEventArgs, Task> handler)
Parameters
handler
Func<DiscordClient, MessageCreatedEventArgs, Task>