From ec0096cdd3642a742a1ca5e9378b5a2d46fb9cd5 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 15 May 2022 09:46:41 -0700 Subject: [PATCH] improper return --- commands/updateStatus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/updateStatus.js b/commands/updateStatus.js index 47ce51b..f44a9bb 100644 --- a/commands/updateStatus.js +++ b/commands/updateStatus.js @@ -86,8 +86,8 @@ module.exports = { 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); - if (!user) return interaction.send(`You are not logged in ${message.author}`); - if (user.user.activeCommunity==null) return message.channel.send(`You must join a community to use this command.`); + if (!user) return interaction.send(`You are not logged in <@${interactoin.member.user.id}>`); + if (user.user.activeCommunity==null) return interaction.send(`You must join a community to use this command.`); let onDuty=null; let updateDuty=false; let status = args[0].value;