From 0f37677c59d84061b1df2c740f2494c1bbb29a30 Mon Sep 17 00:00:00 2001 From: Christopher Long <36999273+KingFruit85@users.noreply.github.com> Date: Thu, 5 Oct 2023 09:59:40 +0100 Subject: [PATCH] [Docs] Update receiving-context-menu-command-events.md (#2786) Use correct casing --- .../receiving-context-menu-command-events.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/int_basics/application-commands/context-menu-commands/receiving-context-menu-command-events.md b/docs/guides/int_basics/application-commands/context-menu-commands/receiving-context-menu-command-events.md index d4e973d0..c38feffe 100644 --- a/docs/guides/int_basics/application-commands/context-menu-commands/receiving-context-menu-command-events.md +++ b/docs/guides/int_basics/application-commands/context-menu-commands/receiving-context-menu-command-events.md @@ -18,16 +18,16 @@ client.UserCommandExecuted += UserCommandHandler; public async Task MessageCommandHandler(SocketMessageCommand arg) { - Console.Writeline("Message command received!"); + Console.WriteLine("Message command received!"); } public async Task UserCommandHandler(SocketUserCommand arg) { - Console.Writeline("User command received!"); + Console.WriteLine("User command received!"); } ``` User commands contain a SocketUser object called `Member` in their data class, showing the user that was clicked to run the command. Message commands contain a SocketMessage object called `Message` in their data class, showing the message that was clicked to run the command. -Both return the user who ran the command, the guild (if any), channel, etc. \ No newline at end of file +Both return the user who ran the command, the guild (if any), channel, etc.