Haha-Yes/commands/owner/botAvatar.js
2018-09-08 00:22:38 +02:00

23 lines
No EOL
634 B
JavaScript

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);
}
};