async moment

This commit is contained in:
Christopher Cookman 2024-08-20 14:37:23 -06:00
parent 78c22c3075
commit 8be610735b
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -190,8 +190,8 @@ Client.on("interactionCreate", async (interaction) => {
switch (interaction.commandName) { switch (interaction.commandName) {
case "ban": case "ban":
// If the user isnt already banned, ban them // If the user isnt already banned, ban them
userId = interaction.options.get("user").value userId = await interaction.options.get("user").value
reason = interaction.options.get("reason").value reason = await interaction.options.get("reason").value
userInfo = await noblox.getPlayerInfo(userId) userInfo = await noblox.getPlayerInfo(userId)
userThumbnail = await noblox.getPlayerThumbnail([userId], 720, "png", false, "body") userThumbnail = await noblox.getPlayerThumbnail([userId], 720, "png", false, "body")
db.get("SELECT * FROM bans WHERE userId = ?", [userId], (err, row) => { db.get("SELECT * FROM bans WHERE userId = ?", [userId], (err, row) => {