Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public RequireBotPermissionsAttribute(Permissions channelPermissions,

public override ValueTask<PreconditionResult> EnsureCanExecuteAsync(TContext context, IServiceProvider? serviceProvider)
{
if (context is IComponentInteractionContext interactionContext)
if (context is IInteractionContext interactionContext)
{
if (interactionContext.Interaction.Context is not InteractionContextType.Guild)
return new(PreconditionResult.Fail("The current guild could not be found."));
Expand Down