deprecate prefix commands

This commit is contained in:
SowinskiBraeden committed 2022-08-06 10:19:41 -07:00
1 parent 0d69c6c79d
commit 88f89eae11
29 files changed
+34 -1012

No files matched your search

-16
View File
@@ -8,22 +8,6 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: ["MANAGE_GUILD"],
},
aliases: ["newprefix", "new_prefix", "set_prefix"],
/**
*
* @param {require("../structures/LinesPoliceCadBot")} client
* @param {import("discord.js").Message} message
* @param {string[]} args
* @param {*} param3
*/
run: async (client, message, args, { GuildDB }) => {
if (args[0]==undefined) return message.channel.send(`You must provide a \`new prefix\` ${message.author}`);
if (args[0].length<1) return message.channel.send('Your new prefix must be \`1\` character!')
client.dbo.collection("prefixes").updateOne({"server.serverID":GuildDB.serverID},{$set:{"server.prefix":args[0]}},function(err, res) {
if (err) throw err;
message.channel.send(`The new prefix is now **\`${args[0]}\`**`);
});
},
SlashCommand: {
options: [
{