debug reset_channel

This commit is contained in:
SowinskiBraeden committed 2023-02-28 14:02:45 -08:00
1 parent d7d2928aea
commit 39160ab3dd
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -21,8 +21,6 @@ module.exports = {
const permissions = bitfieldCalculator.permissions(interaction.member.permissions);
if (!permissions.includes("MANAGE_GUILD")) return interaction.send({ content: 'You don\'t have the permissions to use this command.' });
let guild = await client.dbo.collection("prefixes").findOne({"server.serverID":interaction.guild.id}).then(guild => guild);
if (client.exists(guild.server.allowedChannels)&&guild.server.allowedChannels.includes(channelid)) return interaction.send({ content: `The channel <#${args[0].value}> has already been added.` });
client.dbo.collection("prefixes").updateOne({"server.serverID":interaction.guild.id},{$set:{"server.allowedChannels":[]},$set:{"server.hasCustomChannels":false}},function(err, res) {
if (err) throw err;
return interaction.send({ content: `Successfully reset all configured channels` });
+1 -1
View File
@@ -2,7 +2,7 @@ require('dotenv').config()
module.exports = {
Dev: "PRODUCTION",
Version: "3.2.0",
Version: "3.2.1",
Admins: ["362791661274660874"], // Admins of the bot
DefaultPrefix: "?",
socket: "https://www.linespolice-cad.com/",