Files
xiao/framework/Extensions.js
T
Dragon Fire 8809dee34c Fix lint
2021-06-05 12:31:10 -04:00

19 lines
445 B
JavaScript

const { Structures } = 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('', { embed, ...options });
}
code(lang, content, options) {
return this.channel.send(content, { code: lang, ...options });
}
}
return CommandMessage;
});