Handle updates of members for permissions.

This commit is contained in:
Paul
2021-06-30 20:06:42 +01:00
parent b31183e0f8
commit f6daa54411
5 changed files with 36 additions and 8 deletions

View File

@@ -112,6 +112,7 @@ export function registerEvents({
client.users.addListener('mutation', logMutation);
client.servers.addListener('mutation', logMutation);
client.channels.addListener('mutation', logMutation);
client.servers.members.addListener('mutation', logMutation);
}
const online = () => {
@@ -142,6 +143,7 @@ export function registerEvents({
client.users.removeListener('mutation', logMutation);
client.servers.removeListener('mutation', logMutation);
client.channels.removeListener('mutation', logMutation);
client.servers.members.removeListener('mutation', logMutation);
}
window.removeEventListener("online", online);