From 548cef00e7b82bb918439ad1c9130ac0535c5243 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sat, 24 Jul 2021 20:00:35 -0600 Subject: [PATCH] Some some database objects in modlog --- 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 12ffc86..0198926 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.2" +__version__ = "1.5.3" db = DBManager(get_config().mongo).mongo diff --git a/jarvis/cogs/modlog.py b/jarvis/cogs/modlog.py index 93c0abc..bd2cc9a 100644 --- a/jarvis/cogs/modlog.py +++ b/jarvis/cogs/modlog.py @@ -260,8 +260,8 @@ class ModlogCog(commands.Cog): channel = after.guild.get_channel(modlog.value) await asyncio.sleep(0.5) # Need to wait for audit log embed = None - mute = Setting(guild=before.guild.id, setting="mute") - verified = Setting(guild=before.guild.id, setting="verified") + mute = Setting.get(guild=before.guild.id, setting="mute") + verified = Setting.get(guild=before.guild.id, setting="verified") if mute and before.guild.get_role(mute.value) in after.roles: embed = await self.process_mute(before, after) elif mute and before.guild.get_role(mute.value) in before.roles: