Some some database objects in modlog
This commit is contained in:
parent
f6dc7743f5
commit
548cef00e7
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)
|
||||
jarvis_self = Process()
|
||||
__version__ = "1.5.2"
|
||||
__version__ = "1.5.3"
|
||||
|
||||
|
||||
db = DBManager(get_config().mongo).mongo
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue