forked from Supositware/Haha-Yes
24 lines
651 B
JavaScript
24 lines
651 B
JavaScript
|
const { Command } = require('discord.js-commando');
|
||
|
module.exports = class UsernameCommand extends Command {
|
||
|
constructor(client) {
|
||
|
super(client, {
|
||
|
name: 'username',
|
||
|
group: 'owner',
|
||
|
memberName: 'username',
|
||
|
description: 'Change the username of the bot',
|
||
|
ownerOnly: true,
|
||
|
args: [
|
||
|
{
|
||
|
key: 'username',
|
||
|
prompt: 'Wich status should i have?',
|
||
|
type: 'string',
|
||
|
}
|
||
|
]
|
||
|
});
|
||
|
}
|
||
|
|
||
|
run(message, { username }) {
|
||
|
this.client.user.setUsername(username);
|
||
|
|
||
|
}
|
||
|
};
|