Browse Source

Fix example of documentation

pull/2594/head
Jan 2 years ago
parent
commit
0bf65b9490
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/int_framework/samples/intro/context.cs

+ 2
- 2
docs/guides/int_framework/samples/intro/context.cs View File

@@ -7,8 +7,8 @@ discordClient.ButtonExecuted += async (interaction) =>
public class MessageComponentModule : InteractionModuleBase<SocketInteractionContext<SocketMessageComponent>>
{
[ComponentInteraction("custom_id")]
public async Command()
public async Task Command()
{
Context.Interaction.UpdateAsync(...);
await Context.Interaction.UpdateAsync(...);
}
}

Loading…
Cancel
Save