From 16ddd8b388d7c9c65dad8be2636da354298dfeb2 Mon Sep 17 00:00:00 2001 From: Supositware Date: Thu, 13 Oct 2022 15:55:56 +0200 Subject: [PATCH] Resolve the user first --- commands/owner/ublacklist.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/owner/ublacklist.js b/commands/owner/ublacklist.js index 1413671..8a57b74 100644 --- a/commands/owner/ublacklist.js +++ b/commands/owner/ublacklist.js @@ -33,7 +33,10 @@ export default { const body = { type:command, uid: userid, reason: reason }; Blacklists.create(body); let user = userid; - if (command !== 'guild') {user = client.users.fetch(userid).tag;} + if (command !== 'guild') { + await client.users.resolve(userid); + user = client.users.fetch(userid).tag; + } return interaction.editReply(`${user} has been blacklisted from ${command} with the following reason ${reason}`); }