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

8 lines
387 B
JavaScript
Raw Normal View History

module.exports = {
name: 'prefix',
async execute(message, args, client, Discord, prefix) {
if (!args[2]) return message.channel.send(`Current prefix: \`${client.global.db.guilds[message.guild.id].prefix}\``);
client.global.db.guilds[message.guild.id].prefix = args[2];
message.channel.send(`:white_check_mark: New prefix set to: \`${args[2]}\``);
}
};