Files
xiao/framework/Extensions.js
T
2021-06-05 12:17:33 -04:00

22 lines
477 B
JavaScript

const { Structures } = require('discord.js');
module.exports = Structures.extend('Message', Message => {
return class CommandMessage extends Message {
constructor(...args) {
super(...args);
}
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 });
}
}
});