diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/listeners/message/level.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/listeners/message/level.ts b/src/listeners/message/level.ts index c16e811..5abfd6f 100644 --- a/src/listeners/message/level.ts +++ b/src/listeners/message/level.ts @@ -12,7 +12,8 @@ export default class LevelListener extends BushListener { } public override async exec(...[message]: BushCommandHandlerEvents['messageInvalid']) { - if (message.author.bot || !message.author || !message.guild || !message.guildId) return; + if (message.author.bot || !message.author || !message.inGuild()) return; + if (!(await message.guild.hasFeature('leveling'))) return; if (this.#levelCooldowns.has(`${message.guildId}-${message.author.id}`)) return; if ((await message.guild.getSetting('noXpChannels')).includes(message.channel.id)) return; |