Skip to content

Commit 7d17792

Browse files
fix: don't say "permanently" when a user is kicked.
1 parent aa3fc2d commit 7d17792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/exts/moderation/infraction/_scheduler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ async def apply_infraction(
219219
# Default values for the confirmation message and mod log.
220220
confirm_msg = ":ok_hand: applied"
221221

222-
# Specifying an expiry for a note or warning makes no sense.
223-
if infr_type in ("note", "warning"):
222+
# Specifying an expiry for a kick, note, or warning makes no sense.
223+
if infr_type in ("kick", "note", "warning"):
224224
expiry_msg = ""
225225
else:
226226
expiry_msg = f" until {expiry}" if expiry else " permanently"

0 commit comments

Comments
 (0)