Skip to content

Commit 8d2797b

Browse files
committed
don't send a duplicate ban message for !ban
1 parent 50beb41 commit 8d2797b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Commands/Bans.cs

-5
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ public async Task BanCmd(CommandContext ctx,
123123
return;
124124
}
125125
}
126-
reason = reason.Replace("`", "\\`").Replace("*", "\\*");
127-
if (banDuration == default)
128-
await ctx.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} {targetMember.Mention} has been banned: **{reason}**");
129-
else
130-
await ctx.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} {targetMember.Mention} has been banned for **{TimeHelpers.TimeToPrettyFormat(banDuration, false)}**: **{reason}**");
131126
}
132127

133128
/// I CANNOT find a way to do this as alias so I made it a separate copy of the command.

0 commit comments

Comments
 (0)