Debug updateStatus not logged in check

This commit is contained in:
SowinskiBraeden authored and GitHub committed 2023-06-10 15:27:37 -07:00
1 parent ef85183f1c
commit 83aca4b7b0
1 file changed
+2 -2
+2 -2
View File
@@ -41,7 +41,7 @@ module.exports = {
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);
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.` });
let onDuty=null;
let updateDuty=false;
@@ -72,4 +72,4 @@ module.exports = {
return;
},
},
}
}