From 7ab1b78de1d44e01552a538847884c8edd95dd11 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Tue, 10 May 2022 11:42:53 -0700 Subject: [PATCH] fix interaction send not in comm --- commands/community.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/community.js b/commands/community.js index 91a76a7..b180c03 100644 --- a/commands/community.js +++ b/commands/community.js @@ -41,7 +41,7 @@ module.exports = { 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.`); - if (user.user.activeCommunity==null) return message.channel.send(`You are not in a community.`); + if (user.user.activeCommunity==null) return interaction.send(`You are not in a community.`); let community = await client.dbo.collection("communities").findOne({_id:ObjectId(user.user.activeCommunity)}).then(community => community); if (!community) return interaction.send(`Community not found.`); return interaction.send(`You are in the community \`${community.community.name}\``);