Browse Source

Fixed typos

Changed frist to first and dont to don't
pull/2119/head
Ilay Nahman GitHub 3 years ago
parent
commit
bd5e2f9b67
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/int_basics/application-commands/slash-commands/creating-slash-commands.md

+ 2
- 2
docs/guides/int_basics/application-commands/slash-commands/creating-slash-commands.md View File

@@ -70,14 +70,14 @@ public async Task Client_Ready()
// Let's do our global command
var globalCommand = new SlashCommandBuilder();
globalCommand.WithName("first-global-command");
globalCommand.WithDescription("This is my frist global slash command");
globalCommand.WithDescription("This is my first global slash command");

try
{
// Now that we have our builder, we can call the CreateApplicationCommandAsync method to make our slash command.
await guild.CreateApplicationCommandAsync(guildCommand.Build());

// With global commands we dont need the guild.
// With global commands we don't need the guild.
await client.CreateGlobalApplicationCommandAsync(globalCommand.Build());
// Using the ready event is a simple implementation for the sake of the example. Suitable for testing and development.
// For a production bot, it is recommended to only run the CreateGlobalApplicationCommandAsync() once for each command.


Loading…
Cancel
Save