mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const { Structures } = require('discord.js');
|
const { Structures, APIMessage } = require('discord.js');
|
||||||
|
|
||||||
module.exports = Structures.extend('Message', Message => {
|
module.exports = Structures.extend('Message', Message => {
|
||||||
class CommandMessage extends Message {
|
class CommandMessage extends Message {
|
||||||
@@ -7,7 +7,7 @@ module.exports = Structures.extend('Message', Message => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
embed(embed, options) {
|
embed(embed, options) {
|
||||||
return this.channel.send('', { embed, ...options });
|
return this.channel.send(new APIMessage(this.channel, { embed, ...options }));
|
||||||
}
|
}
|
||||||
|
|
||||||
code(lang, content, options) {
|
code(lang, content, options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user