forked from Galactic/galactic-bot
26 lines
587 B
JavaScript
26 lines
587 B
JavaScript
|
const { Command } = require('../../../../interfaces/');
|
||
|
|
||
|
class PrefixCommand extends Command {
|
||
|
|
||
|
constructor(client) {
|
||
|
|
||
|
super(client, {
|
||
|
name: 'prefix',
|
||
|
module: 'information'
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
async execute(message) {
|
||
|
const prefix = message.guild
|
||
|
? message.guild.prefix
|
||
|
: this.client._options.bot.prefix;
|
||
|
|
||
|
return message.respond(message.format('C_PREFIX_SHOWPREFIX', { prefix, mention: this.client.user.tag }), {
|
||
|
emoji: 'success'
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = PrefixCommand;
|