import { Command } from 'discord-akairo'; import { Message } from 'discord.js'; export default class StatusOwner extends Command { public constructor() { super('status', { aliases: ['status'], category: 'owner', description: { content: 'Change the status of the bot.', usage: '[status message]', examples: [ 'hello, world!' ] }, ratelimit: 3, args: [ { id: 'status', type: 'string', prompt: { start: 'Which status would you like to give me?', }, match: 'rest' } ], ownerOnly: true }); } public exec(msg: Message, { status }): Promise { this.client.user.setActivity(status); return msg.channel.send(`My status has not been set to ${status}!`); } }