Skip to content

Commit 743cc96

Browse files
committed
chore: remove unused function
1 parent ba0af6a commit 743cc96

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

src/main/kotlin/me/ddivad/judgebot/embeds/InfractionEmbeds.kt

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -16,54 +16,6 @@ fun EmbedBuilder.createInfractionEmbed(guild: Guild, configuration: GuildConfigu
1616
else if (infraction.type == InfractionType.Strike) createStrikeEmbed(guild, configuration, user, guildMember, infraction, rule)
1717
}
1818

19-
fun EmbedBuilder.createWarnEmbed1(guild: Guild, configuration: GuildConfiguration, user: User, guildMember: GuildMember, infraction: Infraction, rule: Rule?) {
20-
title = "Warn"
21-
description = "${user.mention}, you have received a **warning** from **${guild.name}**."
22-
23-
field {
24-
name = "__Reason__"
25-
value = infraction.reason
26-
}
27-
28-
if (infraction.ruleNumber != null) {
29-
field {
30-
name = "__Rule Broken__"
31-
value = "**[${rule?.title}](${rule?.link})** \n${rule?.description}"
32-
}
33-
}
34-
35-
if (configuration.infractionConfiguration.warnPoints > 0) {
36-
field {
37-
name = "__Points__"
38-
value = "${infraction.points}"
39-
inline = true
40-
}
41-
42-
field {
43-
name = "__Points Count__"
44-
value = "${guildMember.getPoints(guild)} / ${configuration.infractionConfiguration.pointCeiling}"
45-
inline = true
46-
}
47-
}
48-
49-
field {
50-
name = ""
51-
value = """
52-
| A warning is a way for staff to inform you that your behaviour needs to change or further infractions will follow.
53-
| If you think this to be unjustified, please **do not** post about it in a public channel but take it up with **Modmail**.
54-
""".trimMargin()
55-
}
56-
57-
color = Color.RED
58-
thumbnail {
59-
url = guild.getIconUrl(Image.Format.PNG) ?: ""
60-
}
61-
footer {
62-
icon = guild.getIconUrl(Image.Format.PNG) ?: ""
63-
text = guild.name
64-
}
65-
}
66-
6719
fun EmbedBuilder.createWarnEmbed(guild: Guild, configuration: GuildConfiguration, user: User, guildMember: GuildMember, infraction: Infraction, rule: Rule?) {
6820
title = "Warn"
6921
description = "${user.mention}, you have received a **warning** from **${guild.name}**."

0 commit comments

Comments
 (0)