From 7bf97425a61263b18432e566095e7f7e785851d7 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Fri, 24 Feb 2023 21:53:55 +1100 Subject: [PATCH] butts --- commands/slashcommands/utility/linkmc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/slashcommands/utility/linkmc.js b/commands/slashcommands/utility/linkmc.js index 3400149..3d0249c 100644 --- a/commands/slashcommands/utility/linkmc.js +++ b/commands/slashcommands/utility/linkmc.js @@ -26,7 +26,7 @@ module.exports = { let mcusr = interaction.options.getString("mcusername") let collection = await dbclient.db("ntcmcbot").collection("users"); let userdb = await collection.findOne({DISCORDID: interaction.member.id}) - + interaction.deferReply() let highest = "default"; switch(true) { case interaction.member.roles.cache.has(process.env.MCSTAFF_ROLE): @@ -75,7 +75,7 @@ module.exports = { } let res = await rcon.send(`lp user ${mcusr} group add ${highest}`); console.log(res) - await sendResponse(interaction, `added ${mcusr} to the role ${highest}`); + await interaction.editReply(`added ${mcusr} to the role ${highest}`); await rcon.end(); } }