We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db01ef commit 7336745Copy full SHA for 7336745
DiscordBot.cs
@@ -319,6 +319,7 @@ public void InitAndRun(string[] args)
319
};
320
Client.SlashCommandExecuted += (command) =>
321
{
322
+ Console.WriteLine($"Found slash command '{command.CommandName}' from user id {command.User.Id} in channel id {command.Channel.Id}");
323
if (!ClientConfig.AllowSlashCommandsInDM && command.Channel is not IGuildChannel)
324
325
command.RespondAsync("Commands don't work there.", ephemeral: true);
@@ -328,6 +329,7 @@ public void InitAndRun(string[] args)
328
329
330
command.RespondAsync("Unknown command.", ephemeral: true);
331
}
332
+ cmd(command);
333
return Task.CompletedTask;
334
335
Console.WriteLine("Logging in to Discord...");
0 commit comments