Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUserMuted ¶
IsUserMuted check if there's a mute active for the given user in the given server
func ReapplyMute ¶
Types ¶
type MutedUser ¶
MutedUser describes a user that is/was muted
func ExpireMutes ¶
ExpireMutes polls the database for any mutes that may have ended recently. Any users who should be unmuted will have their "Muted" role removed, and the muted entry will be removed from the database. The `unmutedUsers` return value indicates what users were unmuted, what their mute reason was, and what server they were muted in.
Click to show internal directories.
Click to hide internal directories.