Debug updateStatus not logged in check
This commit is contained in:
1 parent
ef85183f1c
commit
83aca4b7b0
1 file changed
+2
-2
@@ -41,7 +41,7 @@ module.exports = {
|
|||||||
if (!useCommand) return interaction.send({ content: "You don't have permission to use this command" });
|
if (!useCommand) return interaction.send({ content: "You don't have permission to use this command" });
|
||||||
|
|
||||||
let user = await client.dbo.collection("users").findOne({"user.discord.id":interaction.member.user.id}).then(user => user);
|
let user = await client.dbo.collection("users").findOne({"user.discord.id":interaction.member.user.id}).then(user => user);
|
||||||
if (!user) return interaction.send({ content: `You are not logged in <@${interactoin.member.user.id}>` });
|
if (!user) return interaction.send({ content: `You are not logged in <@${interaction.member.user.id}>` });
|
||||||
if (user.user.activeCommunity==null) return interaction.send({ content: `You must join a community to use this command.` });
|
if (user.user.activeCommunity==null) return interaction.send({ content: `You must join a community to use this command.` });
|
||||||
let onDuty=null;
|
let onDuty=null;
|
||||||
let updateDuty=false;
|
let updateDuty=false;
|
||||||
@@ -72,4 +72,4 @@ module.exports = {
|
|||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user