diff options
| author | 2021-01-10 16:16:34 +0300 | |
|---|---|---|
| committer | 2021-01-10 16:16:34 +0300 | |
| commit | 43c407cc925ea27faab93d86e54bfce5cca8a8b1 (patch) | |
| tree | 81803fb8f2f8be1acb2b36f8198bb9475dd24304 | |
| parent | Breaks Out Send Message Tests (diff) | |
Improves Unsilence Wrapper Docstring
Modifies the unsilence wrapper docstring to make the arguments and
behavior more clear.
| -rw-r--r-- | bot/exts/moderation/silence.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bot/exts/moderation/silence.py b/bot/exts/moderation/silence.py index e91e558ec..26aa77b61 100644 --- a/bot/exts/moderation/silence.py +++ b/bot/exts/moderation/silence.py @@ -209,7 +209,12 @@ class Silence(commands.Cog): @lock_arg(LOCK_NAMESPACE, "channel", raise_error=True) async def _unsilence_wrapper(self, channel: TextOrVoiceChannel, ctx: Optional[Context] = None) -> None: - """Unsilence `channel` and send a success/failure message.""" + """ + Unsilence `channel` and send a success/failure message to ctx.channel. + + If ctx is None or not passed, `channel` is used in its place. + If `channel` and ctx.channel are the same, only one message is sent. + """ msg_channel = channel if ctx is not None: msg_channel = ctx.channel |