diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/dev/eval.ts | 3 | ||||
-rw-r--r-- | src/listeners/guild/joinRoles.ts | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index c8541c6..28d2c76 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -32,6 +32,7 @@ import { Message, MessageAttachment, MessageCollector, + Permissions, ReactionCollector, SelectMenuComponent, Util @@ -267,4 +268,4 @@ export default class EvalCommand extends BushCommand { } } -/** @typedef {ActivePunishment|Global|Guild|Level|ModLog|StickyRole|ButtonInteraction|Collection|Collector|CommandInteraction|ContextMenuCommandInteraction|DMChannel|Emoji|Interaction|InteractionCollector|Message|ActionRow|MessageAttachment|ButtonComponent|MessageCollector|SelectMenuComponent|ReactionCollector|Util|Canvas|Shared} VSCodePleaseDontRemove */ +/** @typedef {ActivePunishment|Global|Guild|Level|ModLog|StickyRole|ButtonInteraction|Collection|Collector|CommandInteraction|ContextMenuCommandInteraction|DMChannel|Emoji|Interaction|InteractionCollector|Message|ActionRow|MessageAttachment|ButtonComponent|MessageCollector|SelectMenuComponent|ReactionCollector|Util|Canvas|Shared|Permissions} VSCodePleaseDontRemove */ diff --git a/src/listeners/guild/joinRoles.ts b/src/listeners/guild/joinRoles.ts index a50f7ed..81a07e5 100644 --- a/src/listeners/guild/joinRoles.ts +++ b/src/listeners/guild/joinRoles.ts @@ -12,7 +12,7 @@ export default class JoinRolesListener extends BushListener { public override async exec(...[oldMember, newMember]: BushClientEvents['guildMemberUpdate']) { if (client.config.isDevelopment) return; - if (oldMember.pending === false && newMember.pending === true) { + if (oldMember.pending && !newMember.pending) { const feat = { stickyRoles: await newMember.guild.hasFeature('stickyRoles'), joinRoles: (await newMember.guild.getSetting('joinRoles')).length > 0 |