mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-10 01:08:07 +01:00
fix: add +1 to first line in gh link handler
This commit is contained in:
parent
b8f0721eb8
commit
dc87f7e804
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ async function handleGithubLink(message: Message) {
|
|||
if (extension === "zig") extension = "rs";
|
||||
|
||||
message.reply({
|
||||
content: `***${basename(path)}*** — *(L${firstLineNumber}${secondLineNumber ? `-L${secondLineNumber}` : ""})*\n\`\`\`${extension}\n${safeSlice(text, 2000 - 6 - extension.length)}\n\`\`\``,
|
||||
content: `***${basename(path)}*** — *(L${firstLineNumber + 1}${secondLineNumber ? `-L${secondLineNumber}` : ""})*\n\`\`\`${extension}\n${safeSlice(text, 2000 - 6 - extension.length)}\n\`\`\``,
|
||||
components: [
|
||||
new ActionRowBuilder<ButtonBuilder>()
|
||||
.setComponents(
|
||||
|
|
Loading…
Reference in a new issue