text: const fetch = require('node-fetch');
  const Command = require('../../structures/Command');
  const Constants = require('../../utility/Constants');
  
  module.exports = class extends Command {
      constructor(...args) {
          super(...args, {
              description: 'Check the status of Discord.',
              usage: 'discordstatus',
              aliases: ['dstatus'],
              mode: Constants.Modes.LITE,
          });
      }
  
      execute(message) {
          fetch('https://status.discordapp.com/api/v2/summary.json')
              .then((res) => res.json())
              .then((json) => {
                  if (json.incidents.length === 0) return message.send('All systems are operational.\n\n<https://status.discordapp.com>');
  
                  const incident = json.incidents[0];
  
                  message.send(`**Incident** at **${new Date(incident.created_at)}**\n${incident.incident_updates[0].body}\n\n<https://status.discordapp.com/incidents/${incident.incident_id}>`);
              })
              .catch((err) => (err ? null : message.error('An error occurred making that request.')));
      }
  };
  