mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
fix codeblomk
This commit is contained in:
parent
c39deb126d
commit
661b2bc41e
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
const { Utils, Constants } = require("detritus-client");
|
||||
const { codeblock } = require("../../../labscore/utils/markdown");
|
||||
|
||||
const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor;
|
||||
|
||||
|
@ -49,7 +50,7 @@ module.exports = {
|
|||
}
|
||||
const max = 1990 - language.length;
|
||||
if (!args.noreply) {
|
||||
const reply = ["```" + language, String(message).slice(0, max), "```"].join("\n")
|
||||
const reply = codeblock(language, [String(message).slice(0, max)])
|
||||
return context.editOrReply(
|
||||
reply
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue