allow admin / other commands in any channel

This commit is contained in:
SowinskiBraeden committed 2022-08-27 21:19:05 -07:00
1 parent 7d41a2b373
commit 9cd7762820
6 files changed
+1 -24

No files matched your search

+1 -5
View File
@@ -346,11 +346,7 @@ module.exports = {
* @param {string[]} args
* @param {*} param3
*/
run: async (client, interaction, args, { GuildDB }) => {
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
return interaction.send(`You are not allowed to use the bot in this channel.`);
}
run: async (client, interaction, args, { GuildDB }) => {
const permissions = bitfieldCalculator.permissions(interaction.member.permissions);
let canUseCommand = false;