allow admin / other commands in any channel
This commit is contained in:
6 files changed
-23
No files matched your search
@@ -52,9 +52,6 @@ module.exports = {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
run: async (client, interaction, args, { GuildDB }) => {
|
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.`);
|
|
||||||
}
|
|
||||||
if (args[0].name == 'commands') {
|
if (args[0].name == 'commands') {
|
||||||
let Commands = client.commands.filter((cmd) => {
|
let Commands = client.commands.filter((cmd) => {
|
||||||
return !cmd.debug
|
return !cmd.debug
|
||||||
|
|||||||
@@ -46,10 +46,6 @@ module.exports = {
|
|||||||
* @param {*} param3
|
* @param {*} param3
|
||||||
*/
|
*/
|
||||||
run: async (client, interaction, args, { GuildDB }) => {
|
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.`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const permissions = bitfieldCalculator.permissions(interaction.member.permissions);
|
const permissions = bitfieldCalculator.permissions(interaction.member.permissions);
|
||||||
let canUseCommand = false;
|
let canUseCommand = false;
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,6 @@ module.exports = {
|
|||||||
* @param {*} param3
|
* @param {*} param3
|
||||||
*/
|
*/
|
||||||
run: async (client, interaction, args, { GuildDB }, start) => {
|
run: async (client, interaction, args, { GuildDB }, start) => {
|
||||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
|
||||||
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const end = new Date().getTime();
|
const end = new Date().getTime();
|
||||||
const pingEmbed = new EmbedBuilder()
|
const pingEmbed = new EmbedBuilder()
|
||||||
.setDescription(`🏓 **Pong!** Bot ping: ${end - start}ms`)
|
.setDescription(`🏓 **Pong!** Bot ping: ${end - start}ms`)
|
||||||
|
|||||||
@@ -27,10 +27,6 @@ module.exports = {
|
|||||||
* @param {*} param3
|
* @param {*} param3
|
||||||
*/
|
*/
|
||||||
run: async (client, interaction, args, { GuildDB }) => {
|
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.`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const permissions = bitfieldCalculator.permissions(interaction.member.permissions);
|
const permissions = bitfieldCalculator.permissions(interaction.member.permissions);
|
||||||
let canUseCommand = false;
|
let canUseCommand = false;
|
||||||
|
|
||||||
|
|||||||
@@ -347,10 +347,6 @@ module.exports = {
|
|||||||
* @param {*} param3
|
* @param {*} param3
|
||||||
*/
|
*/
|
||||||
run: async (client, interaction, args, { GuildDB }) => {
|
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.`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const permissions = bitfieldCalculator.permissions(interaction.member.permissions);
|
const permissions = bitfieldCalculator.permissions(interaction.member.permissions);
|
||||||
let canUseCommand = false;
|
let canUseCommand = false;
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,6 @@ module.exports = {
|
|||||||
* @param {*} param3
|
* @param {*} param3
|
||||||
*/
|
*/
|
||||||
run: async (client, interaction, args, { GuildDB }, start) => {
|
run: async (client, interaction, args, { GuildDB }, start) => {
|
||||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
|
||||||
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const end = new Date().getTime();
|
const end = new Date().getTime();
|
||||||
const stats = new EmbedBuilder()
|
const stats = new EmbedBuilder()
|
||||||
.setColor(client.config.Colors.Default)
|
.setColor(client.config.Colors.Default)
|
||||||
|
|||||||
Reference in new issue
Block a user