[Moderation] Moderation commands break if the bot doesn't have permissions/role is higher than the bot #14

Closed
opened 2023-10-21 22:37:13 -04:00 by cswimr · 1 comment
Owner

What cog is causing this error?
Moderation
Describe the bug
if the bot doesn't have the ability to moderate a user, it'll throw an API error
To Reproduce
try to ban/mute someone with a role higher than the bot
Expected Behavior
the bot should send an error message detailing what is wrong instead of just failing the interaction
Additional Context
dn

**What cog is causing this error?** Moderation **Describe the bug** if the bot doesn't have the ability to moderate a user, it'll throw an API error **To Reproduce** try to ban/mute someone with a role higher than the bot **Expected Behavior** the bot should send an error message detailing what is wrong instead of just failing the interaction **Additional Context** dn
cswimr added the
bug
cog
labels 2023-10-21 22:38:49 -04:00
Author
Owner

Fixed by #d752484662

Fixed by [#d752484662](https://coastalcommits.com/SeaswimmerTheFsh/GalaxyCogs/commit/d7524846620646236ff603de7407850138d7ade7)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cswimr/GalaxyCogs#14
No description provided.