Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bot/exts/moderation/infraction/_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ async def apply_infraction(
# Default values for the confirmation message and mod log.
confirm_msg = ":ok_hand: applied"

# Specifying an expiry for a note or warning makes no sense.
if infr_type in ("note", "warning"):
# Specifying an expiry for a kick, note, or warning makes no sense.
if infr_type in ("kick", "note", "warning"):
expiry_msg = ""
else:
expiry_msg = f" until {expiry}" if expiry else " permanently"
Expand Down