Skip to content

Commit

Permalink
fix: handle targetApplication as resolvable
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Apr 10, 2021
1 parent d946d9d commit 2501bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/GuildChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class GuildChannel extends Channel {
max_uses: maxUses,
unique,
target_user_id: this.client.users.resolveID(targetUser),
target_application_id: targetApplication,
target_application_id: targetApplication.id ?? targetApplication,
target_type: targetType,
},
reason,
Expand Down

0 comments on commit 2501bc9

Please sign in to comment.