fix(controllers/roles): emit roleDelete only once (#486)

* Update roles.ts

* delete role after event

* Update roles.ts

* Update roles.ts
This commit is contained in:
ITOH
2021-01-30 19:58:30 +01:00
committed by GitHub
parent 0004e3ecf0
commit fe746be64f

View File

@@ -46,8 +46,6 @@ export async function handleInternalGuildRoleDelete(data: DiscordPayload) {
cacheHandlers.set("members", member.id, member);
});
});
eventHandlers.roleDelete?.(guild, cachedRole);
}
export async function handleInternalGuildRoleUpdate(data: DiscordPayload) {