OneTrueBen / pa-discordbot

0 stars 1 forks source link

Add mutes #18

Closed benjjs closed 4 years ago

benjjs commented 4 years ago

Adds functionality for muting members. Muted members are unable to send messages or speak in voice channels, but are still able to read and hear what others are saying.

This is accomplished (because the API sucks) by making an "unmuted" role which is required to speak, removing speaking permissions from all other roles, and ensuring that only those who are not currently muted have the role. Members with a mod role have access to two new commands:

In order to make this system work, the bot must ensure that:

To do this, it performs a sweep of all of the servers to which it is connected on startup and monitors for any new roles, changes to roles, or new members on any server, enforcing the above conditions.