Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix: fix params for create_channel_invite (#723)
Browse files Browse the repository at this point in the history
* fix: fix params for create_channel_invite

* revert: revert change to edit perms
  • Loading branch information
LordOfPolls authored Nov 19, 2022
1 parent 6278997 commit 13eb7da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion naff/models/discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 13eb7da

Please sign in to comment.