aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Harbys <[email protected]>2020-11-25 17:19:17 +0100
committerGravatar GitHub <[email protected]>2020-11-25 17:19:17 +0100
commit189f8c31bcf9f58cf72abf7f86061746613dfd7f (patch)
tree446e4698f6edbf206e0c1f594984c69cbacc4377
parentremoving redundant class names (diff)
removing redundant descriptions
Co-authored-by: Mark <[email protected]>
-rw-r--r--bot/exts/moderation/stream.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/bot/exts/moderation/stream.py b/bot/exts/moderation/stream.py
index 92fd9955f..ef52cd107 100644
--- a/bot/exts/moderation/stream.py
+++ b/bot/exts/moderation/stream.py
@@ -117,12 +117,7 @@ class Stream(commands.Cog):
ctx: commands.Context,
user: discord.Member = None
) -> None:
- """
- Revokestream handles <prefix>revokestream command.
-
- argument user - required user mention, any errors should be handled by upper level handler
- command removes streaming permission from a user
- """
+ """Revoke streaming permissions from a user."""
not_allowed = not any(Roles.video == role.id for role in user.roles)
if not_allowed:
await user.remove_roles(discord.Object(Roles.video))