Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
plun1331 authored Oct 4, 2024
2 parents e0c941e + d7d3afb commit 8616a97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ These changes are available on the `master` branch, but have not yet been releas
([#2594](https://github.com/Pycord-Development/pycord/pull/2594))
- Fixed the `is_owner()` `user` type hint: `User` -> `User | Member`.
([#2593](https://github.com/Pycord-Development/pycord/pull/2593))
- Fixed `Guild.create_test_entitlement()` and `User.create_test_entitlement()` using the
guild/user ID instead of the application ID.
([#2595](https://github.com/Pycord-Development/pycord/pull/2595))

### Changed

Expand Down
4 changes: 3 additions & 1 deletion discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -4089,7 +4089,9 @@ async def create_test_entitlement(self, sku: Snowflake) -> Entitlement:
"owner_id": self.id,
"owner_type": EntitlementOwnerType.guild.value,
}
data = await self._state.http.create_test_entitlement(self.id, payload)
data = await self._state.http.create_test_entitlement(
self._state.application_id, payload
)
return Entitlement(data=data, state=self._state)

def entitlements(
Expand Down
4 changes: 3 additions & 1 deletion discord/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,9 @@ async def create_test_entitlement(self, sku: discord.abc.Snowflake) -> Entitleme
"owner_id": self.id,
"owner_type": 2,
}
data = await self._state.http.create_test_entitlement(self.id, payload)
data = await self._state.http.create_test_entitlement(
self._state.application_id, payload
)
return Entitlement(data=data, state=self._state)

def entitlements(
Expand Down

0 comments on commit 8616a97

Please sign in to comment.