mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 23:32:12 +02:00
Fix code extension
This commit is contained in:
@@ -11,7 +11,7 @@ Reflect.defineProperty(Message.prototype, 'embed', { value: function (embed, opt
|
||||
} });
|
||||
|
||||
Reflect.defineProperty(Message.prototype, 'code', { value: function (lang, content, options) {
|
||||
return this.channel.send({ content, ...options });
|
||||
return this.channel.send({ content: `\`\`\`${lang}\n${content}\n\`\`\``, ...options });
|
||||
} });
|
||||
|
||||
Reflect.defineProperty(Message.prototype, 'direct', { value: function (content, options) {
|
||||
|
||||
Reference in New Issue
Block a user