Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Change multiple ifs into ifelse
  • Loading branch information
Nathan authored Sep 7, 2020
1 parent af90f82 commit 383b9a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ client.on('message', async (message) => {
Hook PFP: ${hook.avatar},
Hook ID: ${hook.id}`);
}
}
if (!message.author.bot) {
} elif (!message.author.bot) {
if (message.mentions.has(message.guild.me, {ignoreRoles: true, ignoreEveryone: true})) {
if (perms.has("SEND_MESSAGES")) {
if (perms.has("EMBED_LINKS")) {
Expand Down

0 comments on commit 383b9a3

Please sign in to comment.