Skip to content

Commit

Permalink
Merge pull request #152 from the-programmers-hangout/fix/embed-links
Browse files Browse the repository at this point in the history
fix: embed links for rules
  • Loading branch information
ddivad195 authored Jan 1, 2024
2 parents 25ca5ba + 670872d commit 5d683df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import java.util.*

group = "me.ddivad"
version = "2.9.0"
version = "2.9.1"
description = "A bot for managing discord infractions in an intelligent and user-friendly way."

plugins {
Expand Down Expand Up @@ -46,4 +46,4 @@ tasks {
)
}
}
}
}
4 changes: 2 additions & 2 deletions src/main/kotlin/me/ddivad/judgebot/embeds/RuleEmbeds.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ fun EmbedBuilder.createRulesEmbedDetailed(guild: Guild, rules: List<Rule>) {

for (rule in rules) {
field {
value = if (rule.link != "") "**__[${rule.number}. ${rule.title}](${rule.link})__**\n${rule.description}"
else "**__${rule.number}. ${rule.title}__**\n${rule.description}"
value = if (rule.link != "") "[${rule.number}) __**${rule.title}**__](${rule.link})\n${rule.description}"
else "${rule.number}) __**${rule.title}**__\n${rule.description}"
inline = false
}
}
Expand Down

0 comments on commit 5d683df

Please sign in to comment.