[Docs] Update receiving-context-menu-command-events.md (#2786)

Use correct casing
This commit is contained in:
Christopher Long
2023-10-05 09:59:40 +01:00
committed by GitHub
parent a9a8da4d77
commit 0f37677c59

View File

@@ -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.
Both return the user who ran the command, the guild (if any), channel, etc.