Files
xiao/framework/Extensions.js
T
Dragon Fire f45a2dd60c Fix
2021-06-05 22:08:23 -04:00

23 lines
563 B
JavaScript

const { Structures, APIMessage } = require('discord.js');
module.exports = Structures.extend('Message', Message => {
class CommandMessage extends Message {
say(content, options) {
return this.channel.send(content, options);
}
embed(embed, options) {
return this.channel.send(new APIMessage(this.channel, { embed, ...options }));
}
code(lang, content, options) {
return this.channel.send(content, { code: lang, ...options });
}
direct(content, options) {
return this.author.send(content, options);
}
}
return CommandMessage;
});