From cfbb9631417af6cc80053f659da95acffc4d9cb7 Mon Sep 17 00:00:00 2001 From: Taken Date: Sat, 18 Mar 2023 23:49:13 +0100 Subject: [PATCH] Minor bug fix --- commands/update.js | 3 ++- commands/verify.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/update.js b/commands/update.js index 50c9d9e..f30cbf5 100644 --- a/commands/update.js +++ b/commands/update.js @@ -29,7 +29,8 @@ module.exports = { return } - const user = interaction.user; + const user1 = interaction.options.getUser('user'); + const user = interaction.guild.members.cache.get(user1.id); const slothPixel = "https://api.slothpixel.me/api/players/"; const guildAPI = "https://api.slothpixel.me/api/guilds/" const mojangAPI = "https://api.mojang.com/user/profile/" diff --git a/commands/verify.js b/commands/verify.js index 88f14ec..7590a49 100644 --- a/commands/verify.js +++ b/commands/verify.js @@ -25,7 +25,8 @@ module.exports = { await interaction.deferReply(); - const user = interaction.user; + const user1 = interaction.options.getUser('user'); + const user = interaction.guild.members.cache.get(user1.id); const fullUsername = user.username + "#" + user.discriminator const ign = interaction.options.getString('ign'); const mojang = "https://api.mojang.com/users/profiles/minecraft/"