Browse Source
Changed `ExecuteAsync` to `ExecuteCommandAsync`
`_interactionService.ExecuteAsync(ctx, serviceProvider);` cannot be executed because the method `ExecuteAsync` does not exists.
pull/2127/head
Raiden Shogun
GitHub
3 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/guides/int_framework/samples/intro/context.cs
|
|
@@ -1,7 +1,7 @@ |
|
|
|
discordClient.ButtonExecuted += async (interaction) => |
|
|
|
{ |
|
|
|
var ctx = new SocketInteractionContext<SocketMessageComponent>(discordClient, interaction); |
|
|
|
await _interactionService.ExecuteAsync(ctx, serviceProvider); |
|
|
|
await _interactionService.ExecuteCommandAsync(ctx, serviceProvider); |
|
|
|
}; |
|
|
|
|
|
|
|
public class MessageComponentModule : InteractionModuleBase<SocketInteractionContext<SocketMessageComponent>> |
|
|
|