Skip to content

Commit c9269c6

Browse files
/ban: Fix duplicate ban message
1 parent 1625d98 commit c9269c6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Commands/BanCmds.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,7 @@ public async Task BanSlashCommand(SlashCommandContext ctx,
105105
return;
106106
}
107107
}
108-
reason = reason.Replace("`", "\\`").Replace("*", "\\*");
109-
if (banDuration == default)
110-
await ctx.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} {user.Mention} has been banned: **{reason}**");
111-
else
112-
await ctx.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} {user.Mention} has been banned for **{TimeHelpers.TimeToPrettyFormat(banDuration, false)}**: **{reason}**");
113-
108+
114109
webhookOut.Content = $"{Program.cfgjson.Emoji.Success} User was successfully bonked.";
115110
await ctx.EditResponseAsync(webhookOut);
116111
}

0 commit comments

Comments
 (0)