Erisa / Cliptok

Moderation Discord bot for Microsoft Community.
https://msft.chat/about/bots.html#cliptok
MIT License
63 stars 26 forks source link

Bug: Cliptok's /lockdown failsafe for itself sometimes fails #241

Open FloatingMilkshake opened 2 weeks ago

FloatingMilkshake commented 2 weeks ago

When locking a channel, Cliptok is supposed to grant two failsafes: it grants Send Messages for the Moderator role, and it grants Send Messages for itself (this one is just a user override).

In some cases (at least when Cliptok has a Deny override for View Channel—I haven't yet tested other cases), it fails to apply the failsafe for itself. Moderator is granted Send Messages, but Cliptok is not. It should be merging the two permission sets, keeping the Deny for View Channel but granting Send Messages also.