diff options
| author | 2020-09-22 14:10:34 -0700 | |
|---|---|---|
| committer | 2020-09-22 14:10:34 -0700 | |
| commit | 569f2aaf7b6025bddd59abb39d21939c4666ebed (patch) | |
| tree | f2aa9c08528c0592053693e81fe0b5b8f3cf1555 | |
| parent | Silence: 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.py | 2 |
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 = ( |