hide non allowed channel warning messages
This commit is contained in:
14 files changed
+14
-14
No files matched your search
@@ -20,7 +20,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) });
|
||||
}
|
||||
|
||||
if (GuildDB.allowedChannels.length == 0) {
|
||||
|
||||
Reference in new issue
Block a user