From ca14936a8d3dad78afc0e99b1c6c0847e9ccf398 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 19 Aug 2020 16:56:08 -0400 Subject: [PATCH] fixes to rank --- src/commands/rank.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/rank.ts b/src/commands/rank.ts index 3c87eea..e95ba4d 100644 --- a/src/commands/rank.ts +++ b/src/commands/rank.ts @@ -59,10 +59,10 @@ export default class Rank extends Command { permCheck = entry.permissions.some((item) => message.member.roles.includes(item)); } if (!permCheck) return this.error(message.channel, 'Permission denied.'); - await message.member.addRole(entry.roleID, `User ${message.author.username}#${message.author.discriminator} self-assigned this role.`); + await message.member.addRole(entry.roleID, 'User self-assigned this role.'); this.success(message.channel, `You have self-assigned ${entry.name}.`); } else if (message.member.roles.includes(entry.roleID)) { - await message.member.removeRole(entry.roleID, `User ${message.author.username}#${message.author.discriminator} has removed a self-assignable role.`); + await message.member.removeRole(entry.roleID, 'User has removed a self-assignable role.'); this.success(message.channel, `You have removed ${entry.name}.`); } return null;