From 7bf5e85466e7c61101c18bff75c0872d00ee9187 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sat, 24 Jul 2021 20:07:04 -0600 Subject: [PATCH] Fix attempting to await audit log --- jarvis/__init__.py | 2 +- jarvis/cogs/modlog.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jarvis/__init__.py b/jarvis/__init__.py index 0198926..772cf7d 100644 --- a/jarvis/__init__.py +++ b/jarvis/__init__.py @@ -44,7 +44,7 @@ jarvis = commands.Bot( ) slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True) jarvis_self = Process() -__version__ = "1.5.3" +__version__ = "1.5.4" db = DBManager(get_config().mongo).mongo diff --git a/jarvis/cogs/modlog.py b/jarvis/cogs/modlog.py index bd2cc9a..330fe77 100644 --- a/jarvis/cogs/modlog.py +++ b/jarvis/cogs/modlog.py @@ -67,7 +67,7 @@ class ModlogCog(commands.Cog): if modlog: channel = guild.get_channel(modlog.value) await asyncio.sleep(0.5) # Need to wait for audit log - auditlog = await guild.audit_logs( + auditlog = guild.audit_logs( limit=50, action=discord.AuditLogAction.ban, after=datetime.utcnow() - timedelta(seconds=15), @@ -99,7 +99,7 @@ class ModlogCog(commands.Cog): if modlog: channel = guild.get_channel(modlog.value) await asyncio.sleep(0.5) # Need to wait for audit log - auditlog = await guild.audit_logs( + auditlog = guild.audit_logs( limit=50, action=discord.AuditLogAction.unban, after=datetime.utcnow() - timedelta(seconds=15),