#MessageEvents

1 messages · Page 1 of 1 (latest)

river cloak
fallow tapirBOT
#

Showing lines 22 - 32 of 8b929690a9a89a9aa8a8b8e43ec0dd2e1ab685db/samples/TextCommandFramework/Services/CommandHandlingService.cs ```cs
22
23 // Hook CommandExecuted to handle post-command-execution logic.
24 _commands.CommandExecuted += CommandExecutedAsync;
25 // Hook MessageReceived so we can process each message to see
26 // if it qualifies as a command.

27 _discord.MessageReceived += MessageReceivedAsync;
28 }
29
30 public async Task InitializeAsync()
31 {
32 // Register modules that are public and inherit ModuleBase<T>.

silent scaffold
river cloak