codePreviews: fix lines being cut off

This commit is contained in:
Cynthia Foxwell 2022-05-07 17:02:34 -06:00
parent fa90552c2a
commit 4c681a137e

View file

@ -74,7 +74,7 @@ events.add("messageCreate", "codePreviews", async function (msg) {
endLine--;
const targetLines = (
entireFile ? lines : lines.slice(startLine, endLine)
entireFile ? lines : lines.slice(startLine, endLine + 1)
).join("\n");
out +=