am dumb
This commit is contained in:
parent
30a1644d10
commit
314c1847ed
7 changed files with 52 additions and 34 deletions
|
@ -8,7 +8,8 @@ module.exports = class Prefix extends Command {
|
|||
module: 'Settings',
|
||||
cooldown: 10,
|
||||
guildOnly: true,
|
||||
developerOnly: false
|
||||
developerOnly: false,
|
||||
AuthorPermissions: [ 'MANAGE_GUILD' ]
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -32,7 +33,7 @@ module.exports = class Prefix extends Command {
|
|||
.then(async () => {
|
||||
let NServer = await ctx.db.servers.get(ctx.guild.id);
|
||||
PrefixEmbed.setTitle(`Prefixes for ${ctx.guild.name}`);
|
||||
PrefixEmbed.setDescription(`${NServer.prefix.join(', ') || ctx.db.defaults.server.prefix}`);
|
||||
PrefixEmbed.setDescription(`${NServer.prefix.join(' | ') || ctx.db.defaults.server.prefix}`);
|
||||
ctx.send(PrefixEmbed);
|
||||
})
|
||||
.catch((err) => ctx.send(err));
|
||||
|
@ -42,9 +43,11 @@ module.exports = class Prefix extends Command {
|
|||
if (ctx.args === [] || ctx.args.join(' ').trim() === '') return ctx.send('No Prefix was given');
|
||||
ctx.utils.db.prefix
|
||||
.remove(ctx, Prefix)
|
||||
.then(async (r) => {
|
||||
.then(async () => {
|
||||
let NServer = await ctx.db.servers.get(ctx.guild.id);
|
||||
ctx.send('Current Prefixes are:\n' + NServer.prefix.join(', '));
|
||||
PrefixEmbed.setTitle(`Prefixes for ${ctx.guild.name}`);
|
||||
PrefixEmbed.setDescription(`${NServer.prefix.join(' | ') || ctx.db.defaults.server.prefix}`);
|
||||
ctx.send(PrefixEmbed);
|
||||
})
|
||||
.catch((err) => ctx.send(err));
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue