aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Harbys <[email protected]>2020-11-27 09:10:48 +0100
committerGravatar Harbys <[email protected]>2020-11-27 09:10:48 +0100
commitfae4ad4a614c56f011f64c64b3318f511ccb17eb (patch)
tree06dbe170b30b8fab31895378eaab406a3abcf80b
parentmove to Scheduler (diff)
fix flake8 and line endings
-rw-r--r--bot/exts/moderation/stream.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/moderation/stream.py b/bot/exts/moderation/stream.py
index 0fc004d75..d8c2a8628 100644
--- a/bot/exts/moderation/stream.py
+++ b/bot/exts/moderation/stream.py
@@ -23,7 +23,7 @@ class Stream(commands.Cog):
@staticmethod
async def _remove_streaming_permission(schedule_user: discord.Member) -> None:
- """Remove streaming permission from Member"""
+ """Remove streaming permission from Member."""
await schedule_user.remove_roles(discord.Object(Roles.video), reason="Temporary streaming access revoked")
@commands.command(aliases=("streaming",))
@@ -37,6 +37,7 @@ class Stream(commands.Cog):
) -> None:
"""
Temporarily grant streaming permissions to a user for a given duration.
+
A unit of time should be appended to the duration.
Units (∗case-sensitive):
\u2003`y` - years
@@ -67,7 +68,7 @@ class Stream(commands.Cog):
ctx: commands.Context,
user: discord.Member
) -> None:
- """Take away streaming permission from a user"""
+ """Take away streaming permission from a user."""
# Check if user has the streaming permission to begin with
allowed = any(Roles.video == role.id for role in user.roles)
if allowed: