text: const { Command } = require('discord-akairo')
  const { MessageEmbed } = require('discord.js');
  module.exports = class RemoveInvitesCommand extends Command {
      constructor() {
          super('removeInvites', {
              //aliases: ['removeinvites'],
              description: {
                  content: 'Removes the specified amount of invites from the mentioned member.',
                  usage: '<member> <amount>'
              },
              category: 'invites',
              clientPermissions: ['EMBED_LINKS'],
              ratelimit: 2,
              args: [
                  {
                      id: 'member',
                      type: 'custom-MEMBER',
                      prompt: {
                          start: 'Who would you like to take invites from?',
                          retry: 'That\'s not a valid member! Try again.'
                      }
                  },
                  {
                      id: 'amount',
                      type: 'number',
                      prompt: {
                          start: 'How many invites would you like to take from this user?',
                          retry: 'That\'s not a valid number! Try again.'
                      }
                  }
              ],
              userPermissions(message) {
                  if(!message.member.hasPermission('ADMINISTRATOR')) return 'Manage Invites';
                  return null;
              }
          });
      };
      async exec(message, {member, amount}) {
          const { client } = this;
          const { invites } = client;
          let embed = new MessageEmbed()
          .setColor(client.config.colors.main)
          .setFooter(client.user.username, client.user.displayAvatarURL({dynamic: true}))
          .setTimestamp();
          let entry = await invites.findOrCreate({where: {discordUser: member.id, guildID: message.guild.id}, defaults: {discordUser: member.id, invites: 0, guildID: message.guild.id}});
          if(entry[0].invites - amount < 0) {
              embed.setColor(client.config.colors.error)
              .setDescription('You cannot make someone have negative invites!');
              return message.channel.send(embed);
          };
          await entry[0].decrement('invites', {by: amount});
          embed.setDescription(`Added ${amount} invites to ${member.toString()}! They now have ${entry[0].invites - amount} invites!`);
          return message.channel.send(embed);
      };
  };
  