diff options
| author | 2020-07-06 01:50:08 +0000 | |
|---|---|---|
| committer | 2020-07-06 01:50:08 +0000 | |
| commit | 7c4f6db3f7291612862f6f16cddc73f7add72fd0 (patch) | |
| tree | ea4c34318c1f44125d75333897d60f4345fc18cd | |
| parent | Make channel comparison against None consistent (diff) | |
Remove unneeded kwargs for `typing.Optional` to keep consistency
| -rw-r--r-- | bot/cogs/slowmode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/slowmode.py b/bot/cogs/slowmode.py index ecbc235a0..1e83065ab 100644 --- a/bot/cogs/slowmode.py +++ b/bot/cogs/slowmode.py @@ -29,7 +29,7 @@ class Slowmode(Cog): await ctx.send_help(ctx.command) @slowmode_group.command(name='get', aliases=['g']) - async def get_slowmode(self, ctx: Context, channel: Optional[TextChannel] = None) -> None: + async def get_slowmode(self, ctx: Context, channel: Optional[TextChannel]) -> None: """Get the slowmode delay for a given text channel.""" # Use the channel this command was invoked in if one was not given if channel is None: @@ -74,7 +74,7 @@ class Slowmode(Cog): ) @slowmode_group.command(name='reset', aliases=['r']) - async def reset_slowmode(self, ctx: Context, channel: Optional[TextChannel] = None) -> None: + async def reset_slowmode(self, ctx: Context, channel: Optional[TextChannel]) -> None: """Reset the slowmode delay for a given text channel to 0 seconds.""" # Use the channel this command was invoked in if one was not given if channel is None: |