diff --git a/index.js b/index.js index fd9de23..d47d94d 100644 --- a/index.js +++ b/index.js @@ -282,8 +282,9 @@ Client.on("interactionCreate", async (interaction) => { break; case "unban": // If the user is banned, unban them - userId = interaction.options.get("user").value + userId = await interaction.options.get("user").value userInfo = await noblox.getPlayerInfo(userId) + console.log(userInfo) userThumbnail = await noblox.getPlayerThumbnail([userId], 720, "png", false, "body") db.get("SELECT * FROM bans WHERE userId = ?", [userId], (err, row) => {