aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-03-15 18:10:06 +0100
committerGravatar Numerlor <[email protected]>2020-03-15 18:10:06 +0100
commita6c9b4991dbb4dcdbc1e2abf97d1a167e8cd983c (patch)
tree9e4305ebe978d231ceae23fc694ff9ac5edfe70f
parentBlock commands until all instance vars are loaded. (diff)
Document returns values of private methods.
-rw-r--r--bot/cogs/moderation/silence.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/moderation/silence.py b/bot/cogs/moderation/silence.py
index 42047d0f7..f532260ca 100644
--- a/bot/cogs/moderation/silence.py
+++ b/bot/cogs/moderation/silence.py
@@ -113,6 +113,7 @@ class Silence(commands.Cog):
If `persistent` is `True` add `channel` to notifier.
`duration` is only used for logging; if None is passed `persistent` should be True to not log None.
+ Return `True` if channel permissions were changed, `False` otherwise.
"""
current_overwrite = channel.overwrites_for(self._verified_role)
if current_overwrite.send_messages is False:
@@ -134,6 +135,7 @@ class Silence(commands.Cog):
Check if `channel` is silenced through a `PermissionOverwrite`,
if it is unsilence it and remove it from the notifier.
+ Return `True` if channel permissions were changed, `False` otherwise.
"""
current_overwrite = channel.overwrites_for(self._verified_role)
if current_overwrite.send_messages is False: