You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun EmbedBuilder.createWarnEmbed(guild:Guild, configuration:GuildConfiguration, user:User, guildMember:GuildMember, infraction:Infraction) {
19
+
fun EmbedBuilder.createWarnEmbed(guild:Guild, configuration:GuildConfiguration, user:User, guildMember:GuildMember, infraction:Infraction, rule:Rule?) {
20
20
title ="Warn"
21
21
description ="""
22
22
| ${user.mention}, you have received a **warning** from **${guild.name}**. A warning is a way for staff to inform you that your behaviour needs to change or further infractions will follow.
23
23
| If you think this to be unjustified, please **do not** post about it in a public channel but take it up with **Modmail**.
24
24
""".trimMargin()
25
25
26
+
if (infraction.ruleNumber !=null) {
27
+
field {
28
+
name ="__Rule Broken__"
29
+
value ="**[${rule?.title}](${rule?.link})** \n${rule?.description}"
0 commit comments