ItsDrike / CommandBot

Discord Bot which can handle most administrative tasks for servers.
Other
0 stars 0 forks source link

Channel mutes #36

Closed ItsDrike closed 4 years ago

ItsDrike commented 4 years ago

Closes #32

Introduce a channel muting system for staff. This will allow staff members to mute channels for up to 15 minutes, or moderators to mute them for longer times, or even permanently

Command for silencing:

As described in #32 this can be useful for forcing users to read the staff messages before they disappear because of spam and spam in general.

The system looks like this image image

ItsDrike commented 4 years ago

The current implementation also mutes staff members without an administrator role when started.

ItsDrike commented 4 years ago

It would be wise to also check if the staff member has Manage Messages rights in that channel so that there can be protected channels which not every staff member can mute

ItsDrike commented 4 years ago

Silencing of a channel should also be logged, to be easily looked up, either in #mod-log or #message-log channel

ItsDrike commented 4 years ago

The current implementation also mutes staff members without an administrator role when started.

It's actually better to use this "blacklist" form where only users with the guest role are disallowed from posting messages.

Only allowing staff roles to post messages would mean additional for loop and overriding all of the staff roles while also disallowing @everyone from posting them.

This means that in order to avoid staff members not being able to post messages while the channel is silenced, explicit channel permissions for these staff roles should be set which will allow them to post messages directly

ItsDrike commented 4 years ago

It would be wise to also check if the staff member has Manage Messages rights in that channel so that there can be protected channels which not every staff member can mute

Added in 1de55d8

ItsDrike commented 4 years ago

Silencing of a channel should also be logged, to be easily looked up, either in #mod-log or #message-log channel

Message log is now send to #mod-log channel in 0986a4c