Fix attempting to await audit log
This commit is contained in:
parent
548cef00e7
commit
7bf5e85466
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ jarvis = commands.Bot(
|
||||||
)
|
)
|
||||||
slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True)
|
slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True)
|
||||||
jarvis_self = Process()
|
jarvis_self = Process()
|
||||||
__version__ = "1.5.3"
|
__version__ = "1.5.4"
|
||||||
|
|
||||||
|
|
||||||
db = DBManager(get_config().mongo).mongo
|
db = DBManager(get_config().mongo).mongo
|
||||||
|
|
|
@ -67,7 +67,7 @@ class ModlogCog(commands.Cog):
|
||||||
if modlog:
|
if modlog:
|
||||||
channel = guild.get_channel(modlog.value)
|
channel = guild.get_channel(modlog.value)
|
||||||
await asyncio.sleep(0.5) # Need to wait for audit log
|
await asyncio.sleep(0.5) # Need to wait for audit log
|
||||||
auditlog = await guild.audit_logs(
|
auditlog = guild.audit_logs(
|
||||||
limit=50,
|
limit=50,
|
||||||
action=discord.AuditLogAction.ban,
|
action=discord.AuditLogAction.ban,
|
||||||
after=datetime.utcnow() - timedelta(seconds=15),
|
after=datetime.utcnow() - timedelta(seconds=15),
|
||||||
|
@ -99,7 +99,7 @@ class ModlogCog(commands.Cog):
|
||||||
if modlog:
|
if modlog:
|
||||||
channel = guild.get_channel(modlog.value)
|
channel = guild.get_channel(modlog.value)
|
||||||
await asyncio.sleep(0.5) # Need to wait for audit log
|
await asyncio.sleep(0.5) # Need to wait for audit log
|
||||||
auditlog = await guild.audit_logs(
|
auditlog = guild.audit_logs(
|
||||||
limit=50,
|
limit=50,
|
||||||
action=discord.AuditLogAction.unban,
|
action=discord.AuditLogAction.unban,
|
||||||
after=datetime.utcnow() - timedelta(seconds=15),
|
after=datetime.utcnow() - timedelta(seconds=15),
|
||||||
|
|
Loading…
Add table
Reference in a new issue