fix/duplicate + broken reset-channels command
This commit is contained in:
1 parent
56180a7f4b
commit
4a22b36aa0
1 file changed
-26
@@ -1,26 +0,0 @@
|
|||||||
const { EmbedBuilder } = require('discord.js');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
name: "reset-channels",
|
|
||||||
description: "Reset channels",
|
|
||||||
usage: "[",
|
|
||||||
permissions: {
|
|
||||||
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
|
||||||
member: ["MANAGE_GUILD"],
|
|
||||||
},
|
|
||||||
SlashCommand: {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {require("../structures/LinesPoliceCadBot")} client
|
|
||||||
* @param {import("discord.js").MessageCreate} message
|
|
||||||
* @param {string[]} args
|
|
||||||
* @param {*} param3
|
|
||||||
*/
|
|
||||||
run: async (client, interaction, args, { GuildDB }) => {
|
|
||||||
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 channels..` });
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user