Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ These changes are available on the `master` branch, but have not yet been releas
([#2584](https://github.com/Pycord-Development/pycord/pull/2584))
- 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()` to use
the application endpoint with the correct 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