Files
xiao/commands/text-edit/uppercase.js
T
2018-08-29 22:24:15 +00:00

25 lines
531 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class UppercaseCommand extends Command {
constructor(client) {
super(client, {
name: 'uppercase',
aliases: ['to-uppercase', 'all-caps', 'caps'],
group: 'text-edit',
memberName: 'uppercase',
description: 'Converts text to uppercase.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to uppercase?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(text.toUpperCase());
}
};