[Docs] Update receiving-context-menu-command-events.md (#2786)
Use correct casing
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user