From 3a0b5307a394e7d306234f9279587c006e1a04fb Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 28 Aug 2022 15:27:49 -0300 Subject: [PATCH] channels: fix typo on Target instantiation possible work in the future is to have discrete types for user id, channel id, etc, instead of putting everything on `int`. cherry-picked from: https://github.com/dolfies/patchcord/commit/0530462a0b5f0ff5aec1dc8d607722eef8d0322c --- litecord/blueprints/channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/channels.py b/litecord/blueprints/channels.py index 21dcb55..7c62cf8 100644 --- a/litecord/blueprints/channels.py +++ b/litecord/blueprints/channels.py @@ -369,7 +369,7 @@ async def _process_overwrites(guild_id: int, channel_id: int, overwrites: list) target_role = None if target_type == 0 else overwrite["id"] target_user = overwrite["id"] if target_type == 0 else None - target = Target(target_type, target_role, target_user) + target = Target(target_type, target_user, target_role) col_name = "target_user" if target.is_user else "target_role" constraint_name = f"channel_overwrites_{col_name}_uniq"