import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; //@ts-ignore no types import emoji from 'emoji-random'; module.exports = class NickNameUser extends Command { constructor(client: CommandoClient) { super(client, { name: 'nickname', aliases: ['nick', 'name'], group: 'user', memberName: 'nickname', description: 'Allows you to change your nickname in the current server.', args: [ { key: 'userNick', prompt: 'What would you like to change your nickname to?', type: 'string' } ], examples: [ 'uwu!nickname sinny', 'uwu!nick s1nical', 'uwu!name s1n' ], throttling: { usages: 5, duration: 30 }, guildOnly: true }); } run(msg: CommandoMessage, { userNick }: any) { msg.member.setNickname(userNick) return msg.reply(`Your nickname has been changed to ${userNick}. ` + emoji.random()) } };