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