aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Den4200 <[email protected]>2020-07-06 01:48:23 +0000
committerGravatar Den4200 <[email protected]>2020-07-06 01:48:23 +0000
commit76e8eaea958029fa11849624c0eb9edcfe248529 (patch)
treeebd649f3f651b2658fe50eb5abd38926201a2771
parentDefault to the channel that `slowmode set` was invoked in (diff)
Make channel comparison against None consistent
-rw-r--r--bot/cogs/slowmode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/slowmode.py b/bot/cogs/slowmode.py
index 93ddf4b19..ecbc235a0 100644
--- a/bot/cogs/slowmode.py
+++ b/bot/cogs/slowmode.py
@@ -44,7 +44,7 @@ class Slowmode(Cog):
async def set_slowmode(self, ctx: Context, channel: Optional[TextChannel], delay: DurationDelta) -> None:
"""Set the slowmode delay for a given text channel."""
# Use the channel this command was invoked in if one was not given
- if not channel:
+ if channel is None:
channel = ctx.channel
# Convert `dateutil.relativedelta.relativedelta` to `datetime.timedelta`