Entitlements¶
discord_http.entitlements module¶
- class discord_http.entitlements.Entitlements(*, state, data)¶
Bases:
PartialEntitlements
- Parameters:
state (DiscordAPI)
data (dict)
- property guild: Guild | PartialGuild | None¶
Returns the guild the entitlement is in.
- class discord_http.entitlements.PartialEntitlements(*, state, id)¶
Bases:
PartialBase
- Parameters:
state (DiscordAPI)
id (int)
- async fetch() Entitlements ¶
Fetches the entitlement.
- Return type:
- class discord_http.entitlements.PartialSKU(*, state, id)¶
Bases:
PartialBase
- Parameters:
state (DiscordAPI)
id (int)
- async create_test_entitlement(*, owner_id, owner_type) PartialEntitlements ¶
Create an entitlement for testing purposes.
- Parameters:
owner_id (
Snowflake
|int
) – The ID of the owner, can be GuildID or UserID.owner_type (
EntitlementOwnerType
|int
) – The type of the owner.
- Return type:
- Returns:
The created entitlement.
- class discord_http.entitlements.SKU(*, state, data)¶
Bases:
PartialSKU
- Parameters:
state (DiscordAPI)
data (dict)