From bb511abc03bb66848947e37a999502b813c77269 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 23 Jul 2020 23:24:17 -0700 Subject: goodbye old uwufier :cry: --- src/commands/server/roles.ts | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/commands/server/roles.ts (limited to 'src/commands/server/roles.ts') diff --git a/src/commands/server/roles.ts b/src/commands/server/roles.ts deleted file mode 100644 index 4ab14fe..0000000 --- a/src/commands/server/roles.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; -const tt = require('../../utils/truncateText.js') - -module.exports = class RolesServer extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'roles', - aliases: [ - 'list-roles', - 'listroles', - 'roles-list', - 'roleslist' - ], - group: 'server', - memberName: 'roles', - description: 'Lists all the roles on the current server.', - examples: ['uwu!roles'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - guildOnly: true - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setColor(0xFFCC4D) - .setTitle('All Roles') - .setDescription(tt( - msg.guild.roles - .cache.sort((role1, role2) => role2.position - role1.position) - .array() - .join(', ') - )) - return msg.say(emb) - } -}; \ No newline at end of file -- cgit v1.2.3