Skip to content

Commit

Permalink
🎨 Remove unnecessary permission check for the info command
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbertGobbels committed Aug 24, 2019
1 parent cc12336 commit 38524ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Commands/Public/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ module.exports = async ({ client, Constants: { Colors, Text }, Utils: { GetFlagF
specialText.push(`**»** This server can use a **custom invite splash background**!${guild.splash ? ` It is currently set to [this](${guild.splashURL({ format: "png", size: 2048 })})` : ""}`);
}
if (guild.features.includes("VANITY_URL")) {
let customInvite;
if (guild.me.permissions.has("MANAGE_GUILD")) {
customInvite = guild.vanityURLCode;
}
const customInvite = guild.vanityURLCode;
specialText.push(`**»** This server can use a **custom vanity URL**!${customInvite ? ` It is currently set to https://discord.gg/${customInvite}` : ""}`);
}
if (specialText.length) {
Expand Down

0 comments on commit 38524ba

Please sign in to comment.