1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 16:00:17 +00:00
musix-oss/commands/settings/prefix.js

8 lines
375 B
JavaScript
Raw Normal View History

2020-02-05 20:02:53 +00:00
module.exports = {
name: 'prefix',
async execute(msg, args, client, Discord, prefix) {
if (!args[2]) return msg.channel.send(`${client.messages.currentPrefix} \`${client.global.db.guilds[msg.guild.id].prefix}\``);
2020-02-05 20:02:53 +00:00
client.global.db.guilds[msg.guild.id].prefix = args[2];
2020-03-12 11:56:31 +00:00
msg.channel.send(`${client.messages.prefixSet} \`${args[2]}\``);
2020-02-05 20:02:53 +00:00
}
};