deprecate prefix commands
This commit is contained in:
29 files changed
+34
-1012
No files matched your search
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user