text: const colors = require('../graphics/colors');
  
  module.exports = class Ctx {
     constructor(message, commandName, args) {
        this.message = message;
        this.channel = message.channel;
        this.guild = message.guild;
  
        this.user = message.author;
        this.member = message.member;
  
        this.commandName = commandName;
        this.args = args;
     }
  
     async react(reaction) {
        await this.message.react(reaction);
     }
  
     async sendText(text, options = {}) {
        await this.channel.send(text, options);
     }
  
     async sendEmbed(embed, options = {}) {
        await this.channel.send(embed, options);
     }
  
     async sendTextAndEmbed(text, embed, options = {}) {
        options.embed = embed;
        await this.channel.send(text, options);
     }
  
     get hexColor() {
        return this.guild ? this.guild.me.displayHexColor : colors.primary;
     }
  
     get guildID() {
        return this.guild ? this.guild.id : null;
     }
  
     get userID() {
        return this.user.id;
     }
  
     get channelID() {
        return this.channel.id;
     }
  };
  