mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
19 lines
483 B
JavaScript
19 lines
483 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 });
|
|
}
|
|
}
|
|
return CommandMessage;
|
|
});
|