This commit is contained in:
Expand-sys 2023-02-24 21:52:31 +11:00
parent 61d1b837e2
commit 4e9d3e4cdd

View file

@ -22,11 +22,11 @@ module.exports = {
* @param {CommandInteraction} interaction * @param {CommandInteraction} interaction
*/ */
async execute(interaction) { async execute(interaction) {
let mcusr = interaction.options.getString("mcusername") let mcusr = interaction.options.getString("mcusername")
let collection = await dbclient.db("ntcmcbot").collection("users"); let collection = await dbclient.db("ntcmcbot").collection("users");
let userdb = await collection.findOne({DISCORDID: interaction.member.id}) let userdb = await collection.findOne({DISCORDID: interaction.member.id})
interaction.deferReply()
let highest = "default"; let highest = "default";
switch(true) { switch(true) {
case interaction.member.roles.cache.has(process.env.MCSTAFF_ROLE): case interaction.member.roles.cache.has(process.env.MCSTAFF_ROLE):