diff --git a/commands/311.js b/commands/311.js index db2968f..87c95cc 100644 --- a/commands/311.js +++ b/commands/311.js @@ -53,7 +53,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) }); } const missing = !GuildDB.dispatchChannel && !GuildDB.dispatcherRole diff --git a/commands/911.js b/commands/911.js index b1e08a9..1c5195a 100644 --- a/commands/911.js +++ b/commands/911.js @@ -54,7 +54,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) }); } const missing = !GuildDB.dispatchChannel && !GuildDB.dispatcherRole diff --git a/commands/bank.js b/commands/bank.js index ac9f4d8..e78bd17 100644 --- a/commands/bank.js +++ b/commands/bank.js @@ -111,7 +111,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 banking = await client.dbo.collection("banks").findOne({"banking.userID": interaction.member.user.id}).then(banking => banking); diff --git a/commands/channels.js b/commands/channels.js index 817bc40..6f429d3 100644 --- a/commands/channels.js +++ b/commands/channels.js @@ -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) { diff --git a/commands/fine.js b/commands/fine.js index 6bbe2b5..a94dc42 100644 --- a/commands/fine.js +++ b/commands/fine.js @@ -38,7 +38,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.officerRole) { diff --git a/commands/inventory.js b/commands/inventory.js index 236e4ba..db1dc99 100644 --- a/commands/inventory.js +++ b/commands/inventory.js @@ -143,7 +143,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); diff --git a/commands/invoice.js b/commands/invoice.js index c32530c..377494c 100644 --- a/commands/invoice.js +++ b/commands/invoice.js @@ -65,7 +65,7 @@ module.exports = { */ run: async (client, interaction, args, { GuildDB }) => { if (GuildDB.customChannelStatus && !GuildDB.allowedChannels.includes(interaction.channel_id)) { - return interaction.send(`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 (args[0].name == 'list') { diff --git a/commands/me.js b/commands/me.js index d81e092..d381523 100644 --- a/commands/me.js +++ b/commands/me.js @@ -29,7 +29,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) }); } const actionEmbed = new EmbedBuilder() diff --git a/commands/search.js b/commands/search.js index 576762d..757f0a6 100644 --- a/commands/search.js +++ b/commands/search.js @@ -37,7 +37,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.onlyOfficersSearch && !client.exists(GuildDB.officerRole)) { diff --git a/commands/tweet.js b/commands/tweet.js index 551b66f..ff33b20 100644 --- a/commands/tweet.js +++ b/commands/tweet.js @@ -37,7 +37,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) }); } const userID = interaction.member.user.id; diff --git a/commands/wallet.js b/commands/wallet.js index 29fbce8..377b37f 100644 --- a/commands/wallet.js +++ b/commands/wallet.js @@ -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); diff --git a/commands/work-roles.js b/commands/work-roles.js index 05bda6f..55f3546 100644 --- a/commands/work-roles.js +++ b/commands/work-roles.js @@ -21,7 +21,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.incomeRoleStatus) { diff --git a/commands/work.js b/commands/work.js index dedcbad..421dcf8 100644 --- a/commands/work.js +++ b/commands/work.js @@ -23,7 +23,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) }); } const hasWorkRole = GuildDB.incomeRoles.some(data => { diff --git a/package.json b/package.json index 3494cb1..b9bd5a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "quarksbot", - "version": "13.2.4", + "version": "13.2.5", "description": "Grand Theft Auto V Roleplay Bot", "main": "index.js", "nodemonConfig": {