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

9 lines
379 B
JavaScript
Raw Normal View History

module.exports = {
name: 'prefix',
2024-02-09 09:53:30 +00:00
async execute(message, args, client, 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]}\``);
}
2024-02-09 09:53:30 +00:00
};