From 5cfa45bfab84ee04724be436ddb2b2791b3b0261 Mon Sep 17 00:00:00 2001 From: Snazzah Date: Tue, 18 Aug 2020 10:01:53 -0500 Subject: [PATCH] Hotfix role names in invalid perms messages --- src/structures/Command.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/structures/Command.js b/src/structures/Command.js index 44320b7..0e1f6d5 100644 --- a/src/structures/Command.js +++ b/src/structures/Command.js @@ -54,12 +54,12 @@ class Command { emoji: 'I need the permission `Use External Emojis` to use this command!', elevated: 'Only the elevated users of the bot can use this command!', curator: `This command requires you to have the "${ - message.guild.roles.get(config.curatorRoleID).name}" role!`, + this.client.guilds.get(config.guildID).roles.get(config.curatorRoleID).name}" role!`, admin: `This command requires you to have the "${ - message.guild.roles.get(config.adminRoleID).name}" role!`, + this.client.guilds.get(config.guildID).roles.get(config.adminRoleID).name}" role!`, curatorOrAdmin: `This command requires you to have the "${ - message.guild.roles.get(config.curatorRoleID).name}" or "${ - message.guild.roles.get(config.adminRoleID).name}" roles!`, + this.client.guilds.get(config.guildID).roles.get(config.curatorRoleID).name}" or "${ + this.client.guilds.get(config.guildID).roles.get(config.adminRoleID).name}" roles!`, guild: 'This command must be ran in a guild!', }[perm]); }