Skip to content

Commit

Permalink
Update xp.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince527GitHub committed Jan 11, 2024
1 parent fe04d9d commit 0f47a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/utils/options/xp.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
const innerInnerOption = args[3]?.toLowerCase();

const xpData = await xpSchema.findOne({ Guild: message.guild.id });
if (!xpData && ["off", "channel", "ping", "rate", "web", "message", "rankcard"].include(options)) return message.reply("XP is disabled.");
if (!xpData && ["off", "channel", "ping", "rate", "web", "message", "rankcard"].includes(options)) return message.reply("XP is disabled.");

const rankData = await rankSchema.findOne({ Guild: message.guild.id });

Expand Down Expand Up @@ -192,4 +192,4 @@ module.exports = {
}

}
}
}

0 comments on commit 0f47a8d

Please sign in to comment.