mirror of https://gitlab.com/litecord/litecord.git
fix typo
This commit is contained in:
parent
0c14473a95
commit
36a69ad8cb
|
|
@ -130,7 +130,7 @@ async def _max_role_position(guild_id, member_id) -> Optional[int]:
|
||||||
async def _validate_target_member(
|
async def _validate_target_member(
|
||||||
guild_id: int, user_id: int, target_member_id: int
|
guild_id: int, user_id: int, target_member_id: int
|
||||||
) -> bool:
|
) -> bool:
|
||||||
owner_id = await storage.db.fetchval(
|
owner_id = await app.storage.db.fetchval(
|
||||||
"""
|
"""
|
||||||
SELECT owner_id
|
SELECT owner_id
|
||||||
FROM guilds
|
FROM guilds
|
||||||
|
|
@ -138,6 +138,7 @@ async def _validate_target_member(
|
||||||
""",
|
""",
|
||||||
guild_id,
|
guild_id,
|
||||||
)
|
)
|
||||||
|
assert owner_id is not None
|
||||||
|
|
||||||
# owners have all permissions
|
# owners have all permissions
|
||||||
# if doing an action as an owner, it always works
|
# if doing an action as an owner, it always works
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue