diff --git a/src/Discord.Net.Interactions/Info/Commands/ComponentCommandInfo.cs b/src/Discord.Net.Interactions/Info/Commands/ComponentCommandInfo.cs index 62195bf0c..91fe2dbf9 100644 --- a/src/Discord.Net.Interactions/Info/Commands/ComponentCommandInfo.cs +++ b/src/Discord.Net.Interactions/Info/Commands/ComponentCommandInfo.cs @@ -57,7 +57,7 @@ namespace Discord.Interactions public async Task ExecuteAsync(IInteractionContext context, IEnumerable paramList, IEnumerable values, IServiceProvider services) { - if (context.Interaction is not SocketMessageComponent messageComponent) + if (context.Interaction is not IComponentInteraction messageComponent) return ExecuteResult.FromError(InteractionCommandError.ParseFailed, $"Provided {nameof(IInteractionContext)} doesn't belong to a Component Command Interaction"); try