From 8be610735bcf279e6685f498b024af6c3438fffa Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 20 Aug 2024 14:37:23 -0600 Subject: [PATCH] async moment --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 281d049..d6d0275 100644 --- a/index.js +++ b/index.js @@ -190,8 +190,8 @@ Client.on("interactionCreate", async (interaction) => { switch (interaction.commandName) { case "ban": // If the user isnt already banned, ban them - userId = interaction.options.get("user").value - reason = interaction.options.get("reason").value + userId = await interaction.options.get("user").value + reason = await interaction.options.get("reason").value userInfo = await noblox.getPlayerInfo(userId) userThumbnail = await noblox.getPlayerThumbnail([userId], 720, "png", false, "body") db.get("SELECT * FROM bans WHERE userId = ?", [userId], (err, row) => {