Erisa / Cliptok

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

Add /baninfo and /muteinfo #207

Closed FloatingMilkshake closed 5 months ago

FloatingMilkshake commented 5 months ago

This PR closes #199.

Adds two new commands, /baninfo and /muteinfo. The latter is the same as c!debug mutestatus. The former is new and is very similar, but shows info about bans instead of mutes. It fetches data from the db when possible, but for cases where a member was banned and there is no db entry, it gets the ban reason from Discord.

image image image

(in the last screenshot, that reason would be pulled from Discord—I just didn't set one in Discord either)

These commands have the public argument like many other commands do—they default to ephemeral responses, but can have their responses shown publicly if needed.