mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 12:36:01 +00:00
Option handler for playlists and settings. Exe function to execute command files. Command aliases updated.
This commit is contained in:
8
commands/settings/prefix.js
Normal file
8
commands/settings/prefix.js
Normal file
@ -0,0 +1,8 @@
|
||||
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]}\``);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user