aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-04-03 21:46:07 +0100
committerGravatar Chris <[email protected]>2021-04-03 21:46:07 +0100
commit8f97c42f1248a0b678763d38cf2608fff6c87de2 (patch)
treec4df63a6ef5f7b85f5dcf05a3bbd8210f3758c18
parentMerge branch 'stream-and-revokestream-commands' of github.com:python-discord/... (diff)
Remove redundant conversion to Arrow datetime in Stream cog
-rw-r--r--bot/exts/moderation/stream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/stream.py b/bot/exts/moderation/stream.py
index 2d1f12469..dab565e57 100644
--- a/bot/exts/moderation/stream.py
+++ b/bot/exts/moderation/stream.py
@@ -103,7 +103,7 @@ class Stream(commands.Cog):
# Schedule task to remove streaming permission from Member and add it to task cache
self.scheduler.schedule_at(duration, member.id, self._revoke_streaming_permission(member))
- await self.task_cache.set(member.id, Arrow.fromdatetime(duration).timestamp())
+ await self.task_cache.set(member.id, duration.timestamp())
await member.add_roles(discord.Object(Roles.video), reason="Temporary streaming access granted")