Remora/Remora.Discord

RequireDiscordPermission Attribute doesn't work properly with the Server Owner

NoobyPilot opened this issue · 0 comments

Description

Remora.Discord.Commands.Conditions.RequireDiscordPermission runs into unexpected behaviour when dealing with the server owner.

Steps to Reproduce

Create a command with the Attribute [RequireDiscordPermission(DiscordPermission.Administrator)] attached to it.
Load the command onto any guild, where the server owner does not have any roles or only roles that do not have the Administrator permission.
Try to execute the command.

Expected Behavior

Since the server owner has administrative privileges, the command should be executed.

Current Behavior

The command won't be executed until the server owner is given a role with Administrator permissions enabled.

Library / Runtime Information

Remora.Discord 2022.17.0
Remora.Discord.Commands 20.1.2