Closed ItsDrike closed 4 years ago
The current implementation also mutes staff members without an administrator role when started.
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
Silencing of a channel should also be logged, to be easily looked up, either in #mod-log
or #message-log
channel
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
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
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
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:
!silence [duration]
(Duration is referring to a custom converter which can interpret durations like:15m
,15M
or simply15
,forever
can also be passed. The default value if nothing is passed is 10 minutes. This converter will raiseBadArgument
error when a number higher than 15/forever is passed by a non-moderator staff member)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