Browse Source

Fix example of documentation (#2594)

pull/2584/merge
Jan GitHub 2 years ago
parent
commit
71e9ecb21e
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_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>> public class MessageComponentModule : InteractionModuleBase<SocketInteractionContext<SocketMessageComponent>>
{ {
[ComponentInteraction("custom_id")] [ComponentInteraction("custom_id")]
public async Command()
public async Task Command()
{ {
Context.Interaction.UpdateAsync(...);
await Context.Interaction.UpdateAsync(...);
} }
} }

Loading…
Cancel
Save