From 13eb7dae1cabae40c4e52417c42143eddcc827c9 Mon Sep 17 00:00:00 2001 From: LordOfPolls Date: Sat, 19 Nov 2022 13:00:26 +0000 Subject: [PATCH] fix: fix params for create_channel_invite (#723) * fix: fix params for create_channel_invite * revert: revert change to edit perms --- naff/models/discord/channel.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/naff/models/discord/channel.py b/naff/models/discord/channel.py index 88bedc248..70dfa4583 100644 --- a/naff/models/discord/channel.py +++ b/naff/models/discord/channel.py @@ -512,7 +512,14 @@ async def create_invite( target_type = InviteTargetTypes.EMBEDDED_APPLICATION invite_data = await self._client.http.create_channel_invite( - self.id, max_age, max_uses, temporary, unique, target_type, target_user, target_application, reason + self.id, + max_age, + max_uses, + temporary, + unique, + target_user_id=target_user, + target_application_id=target_application, + reason=reason, ) return models.Invite.from_dict(invite_data, self._client)