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) => {