From 36a69ad8cba6203442806aac5ed3179e1ae9c116 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 30 Aug 2021 23:22:54 -0300 Subject: [PATCH] fix typo --- litecord/blueprints/checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litecord/blueprints/checks.py b/litecord/blueprints/checks.py index f6b43b2..3571a0e 100644 --- a/litecord/blueprints/checks.py +++ b/litecord/blueprints/checks.py @@ -130,7 +130,7 @@ async def _max_role_position(guild_id, member_id) -> Optional[int]: async def _validate_target_member( guild_id: int, user_id: int, target_member_id: int ) -> bool: - owner_id = await storage.db.fetchval( + owner_id = await app.storage.db.fetchval( """ SELECT owner_id FROM guilds @@ -138,6 +138,7 @@ async def _validate_target_member( """, guild_id, ) + assert owner_id is not None # owners have all permissions # if doing an action as an owner, it always works