feat: add member cache; handle all role changes with RoleManagerPlugin; exit gracefully
This commit is contained in:
parent
fd60a09947
commit
fa50110766
48 changed files with 755 additions and 264 deletions
|
@ -0,0 +1,9 @@
|
|||
import { guildPluginEventListener } from "knub";
|
||||
import { GuildMemberCachePluginType } from "../types";
|
||||
|
||||
export const cancelDeletionOnMemberJoin = guildPluginEventListener<GuildMemberCachePluginType>()({
|
||||
event: "guildMemberAdd",
|
||||
async listener({ pluginData, args: { member } }) {
|
||||
pluginData.state.memberCache.unmarkMemberForDeletion(member.id);
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue