hide non allowed channel warning messages

This commit is contained in:
SowinskiBraeden committed 2022-12-06 20:49:40 -08:00
1 parent 89b0c06cdf
commit 0b63a971da
14 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ module.exports = {
*/
run: async (client, interaction, args, { GuildDB }) => {
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
return interaction.send({ content: `You are not allowed to use the bot in this channel.`, flags: (1 << 6) });
}
let inventory = await client.dbo.collection("inventories").findOne({"inventory.userID": interaction.member.user.id}).then(inventory => inventory);