mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-22 14:41:05 +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";
|
if (extension === "zig") extension = "rs";
|
||||||
|
|
||||||
message.reply({
|
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: [
|
components: [
|
||||||
new ActionRowBuilder<ButtonBuilder>()
|
new ActionRowBuilder<ButtonBuilder>()
|
||||||
.setComponents(
|
.setComponents(
|
||||||
|
|
Loading…
Reference in a new issue