improper return
This commit is contained in:
1 parent
66966c7fd6
commit
ec0096cdd3
1 file changed
+2
-2
@@ -86,8 +86,8 @@ module.exports = {
|
|||||||
if (!useCommand) return interaction.send("You don't have permission to use this command");
|
if (!useCommand) return interaction.send("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(`You are not logged in ${message.author}`);
|
if (!user) return interaction.send(`You are not logged in <@${interactoin.member.user.id}>`);
|
||||||
if (user.user.activeCommunity==null) return message.channel.send(`You must join a community to use this command.`);
|
if (user.user.activeCommunity==null) return interaction.send(`You must join a community to use this command.`);
|
||||||
let onDuty=null;
|
let onDuty=null;
|
||||||
let updateDuty=false;
|
let updateDuty=false;
|
||||||
let status = args[0].value;
|
let status = args[0].value;
|
||||||
|
|||||||
Reference in new issue
Block a user