You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
634 B
JavaScript
23 lines
634 B
JavaScript
6 years ago
|
const { Command } = require('discord.js-commando');
|
||
|
module.exports = class BotAvatarCommand extends Command {
|
||
|
constructor(client) {
|
||
|
super(client, {
|
||
|
name: 'botAvatar',
|
||
|
group: 'owner',
|
||
|
memberName: 'botAvatar',
|
||
|
description: 'Change the avatar of the bot',
|
||
|
ownerOnly: true,
|
||
|
args: [
|
||
|
{
|
||
|
key: 'pic',
|
||
|
prompt: 'Wich avatar should i have?',
|
||
|
type: 'string',
|
||
|
}
|
||
|
]
|
||
|
});
|
||
|
}
|
||
|
|
||
|
run(message, { pic }) {
|
||
|
this.client.user.setAvatar(pic);
|
||
|
}
|
||
|
};
|