async moment
This commit is contained in:
parent
78c22c3075
commit
8be610735b
4
index.js
4
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) => {
|
||||
|
|
Loading…
Reference in a new issue