aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2020-09-22 14:10:34 -0700
committerGravatar GitHub <[email protected]>2020-09-22 14:10:34 -0700
commit569f2aaf7b6025bddd59abb39d21939c4666ebed (patch)
treef2aa9c08528c0592053693e81fe0b5b8f3cf1555
parentSilence: cancel init task when cog unloads (diff)
Silence: use f-string for message
Co-authored-by: Numerlor <[email protected]>
-rw-r--r--bot/cogs/moderation/silence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/silence.py b/bot/cogs/moderation/silence.py
index c339fd4d0..8e15b2284 100644
--- a/bot/cogs/moderation/silence.py
+++ b/bot/cogs/moderation/silence.py
@@ -19,7 +19,7 @@ log = logging.getLogger(__name__)
MSG_SILENCE_FAIL = f"{Emojis.cross_mark} current channel is already silenced."
MSG_SILENCE_PERMANENT = f"{Emojis.check_mark} silenced current channel indefinitely."
-MSG_SILENCE_SUCCESS = Emojis.check_mark + " silenced current channel for {duration} minute(s)."
+MSG_SILENCE_SUCCESS = f"{Emojis.check_mark} silenced current channel for {{duration}} minute(s)."
MSG_UNSILENCE_FAIL = f"{Emojis.cross_mark} current channel was not silenced."
MSG_UNSILENCE_MANUAL = (