jp00p / AGIMUS

Discord bot for Friends of Desoto
MIT License
10 stars 9 forks source link

New Pin and Unpin Context Menu Commands for Lt. Commanders #420

Closed zmattingly closed 1 year ago

zmattingly commented 1 year ago

Since we can't split the permission to pin messages from the ability to delete messages, these two message context commands will allow Lt. Commanders (and above?) to do so via Aggy instead.

Also implemented a new role_check util for @commands.check() so that we can limit command access specifically by roles. You can specify allowed_roles in the command config within configuration.json to limit the command to the roles you specify by plain text name. This uses a new counter-part to generate_local_channel_list(): generate_local_role_map().

image

image

image