Clean-Ups

This commit is contained in:
Daniel Odendahl Jr
2017-05-31 04:41:01 +00:00
parent 21ebcf8537
commit 7802bb49cb
142 changed files with 351 additions and 495 deletions
+2 -4
View File
@@ -1,4 +1,4 @@
const { Command } = require('discord.js-commando');
const Command = require('../../structures/Command');
const { RichEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
const { promisifyAll } = require('tsubaki');
@@ -12,6 +12,7 @@ module.exports = class AnimeCommand extends Command {
group: 'search',
memberName: 'anime',
description: 'Searches My Anime List for a specified anime.',
clientPermissions: ['EMBED_LINKS'],
args: [
{
key: 'query',
@@ -23,9 +24,6 @@ module.exports = class AnimeCommand extends Command {
}
async run(msg, args) {
if (msg.channel.type !== 'dm')
if (!msg.channel.permissionsFor(this.client.user).has('EMBED_LINKS'))
return msg.say('This Command requires the `Embed Links` Permission.');
const { query } = args;
try {
const { text } = await snekfetch