Fix code extension

This commit is contained in:
Dragon Fire
2024-03-20 21:59:24 -04:00
parent de4098ba6b
commit 983893aee3
+1 -1
View File
@@ -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) {