Skip to content

Commit

Permalink
i think im getting scuffed myself (#2977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misha-133 authored Aug 7, 2024
1 parent 1f252a3 commit 5407e17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public override Task<PreconditionResult> CheckRequirementsAsync(IInteractionCont
{
if (context.Interaction.GuildId is null)
return Task.FromResult(PreconditionResult.FromError(NotAGuildErrorMessage ?? "Command must be used in a guild channel."));
if (context.Interaction.Permissions.Has(GuildPermission.Value))
if (!context.Interaction.Permissions.Has(GuildPermission.Value))
return Task.FromResult(PreconditionResult.FromError(ErrorMessage ?? $"Bot requires guild permission {GuildPermission.Value}."));
}

Expand Down

0 comments on commit 5407e17

Please sign in to comment.