From dd3d21749e8dba047fdb72a7c6a1ac82155a3c3d Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Thu, 29 Jun 2023 17:09:08 +0200 Subject: [PATCH] Remove discriminator from custom commands --- commands/misc/custom.js | 2 +- util/custom_commands/customReplaceWithVariables.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/commands/misc/custom.js b/commands/misc/custom.js index 31abd25..318d2f1 100644 --- a/commands/misc/custom.js +++ b/commands/misc/custom.js @@ -68,7 +68,7 @@ module.exports = { }else sendText = "NO CUSTOM COMMANDS" break; case "variables": - sendText = "The variables you can use are:\n\n\n\n\n\n\n\n" + sendText = "The variables you can use are:\n\n\n\n\n\n\n" break; case "edit": sendText = editCustomCommand(customName, message.author.id, customMessage) diff --git a/util/custom_commands/customReplaceWithVariables.js b/util/custom_commands/customReplaceWithVariables.js index 1a5e967..b71d598 100644 --- a/util/custom_commands/customReplaceWithVariables.js +++ b/util/custom_commands/customReplaceWithVariables.js @@ -6,12 +6,11 @@ module.exports = function(customMessage, message, prefix, globalPrefix){ let nickname = getNickname(user, message.guild) let username = user.user.username let userID = user.user.id - let discriminator = user.user.discriminator let guildName = message.guild.name let guildID = message.guild.id - let variables = ["", "", "", "", "", "", "", ""] - let replacer = [prefix, globalPrefix, username, nickname, userID, discriminator, guildName, guildID] + let variables = ["", "", "", "", "", "", ""] + let replacer = [prefix, globalPrefix, username, nickname, userID, guildName, guildID] for (let i = 0; i < variables.length; i++){