Applications and monetization¶
The models guide explains how models are typed and decoded. Every class here is importable from bostie.
bostie.models.application
¶
PartialApplication
¶
InstallParams
¶
Bases: Builder
The scopes and bot permissions an install link asks for.
ApplicationIntegrationTypeConfiguration
¶
Bases: Builder
oauth2_install_params
class-attribute
instance-attribute
¶
oauth2_install_params: InstallParams | None = None
TeamMember
¶
Team
¶
Application
¶
Bases: PartialApplication
The bot's app, with the settings its owner sees.
approximate_guild_count
class-attribute
instance-attribute
¶
approximate_guild_count: int | None = None
approximate_user_install_count
class-attribute
instance-attribute
¶
approximate_user_install_count: int | None = None
approximate_user_authorization_count
class-attribute
instance-attribute
¶
approximate_user_authorization_count: int | None = None
interactions_endpoint_url
class-attribute
instance-attribute
¶
interactions_endpoint_url: str | None = None
role_connections_verification_url
class-attribute
instance-attribute
¶
role_connections_verification_url: str | None = None
event_webhooks_status
class-attribute
instance-attribute
¶
event_webhooks_status: ApplicationEventWebhookStatus | None = None
event_webhooks_types
class-attribute
instance-attribute
¶
event_webhooks_types: tuple[WebhookEventType, ...] = ()
integration_types_config
class-attribute
instance-attribute
¶
integration_types_config: dict[ApplicationIntegrationType, ApplicationIntegrationTypeConfiguration] = {}
ActivityLocation
¶
ActivityInstance
¶
ApplicationRoleConnectionMetadata
¶
Bases: Builder
A value a guild can require of a user's connection to the app for a role.
name_localizations
class-attribute
instance-attribute
¶
SessionStartLimit
¶
GatewayInfo
¶
GatewayBotInfo
¶
Bases: GatewayInfo
The gateway URL, the recommended shard count and the session start limit.
bostie.models.monetization
¶
PartialEntitlement
¶
Entitlement
¶
Bases: PartialEntitlement
A user's or a guild's access to a SKU of the app.
SKU
¶
Subscription
¶
decode_entitlement
¶
decode_entitlement(data: bytes) -> PartialEntitlement
Decode an entitlement, as a PartialEntitlement when it has no period.
bostie.models.social
¶
LobbyMember
¶
Lobby
¶
LobbyMessageMember
¶
LobbyMessage
¶
GameDirectMessage
¶
Bases: Model, Snowflake
A direct message sent while a player has a Social SDK session.
A message between two provisional accounts exists only in game and carries
channel with the recipients; another one is a regular message.
ApplicationIdentity
¶
PrimaryProfileData
¶
Bases: Builder
The game stats every Game Stats Widget knows; each one is optional.
highest_rank_image
class-attribute
instance-attribute
¶
highest_rank_image: ProfileMedia | None = None
featured_played_character
class-attribute
instance-attribute
¶
featured_played_character: str | None = None
featured_played_character_image
class-attribute
instance-attribute
¶
featured_played_character_image: ProfileMedia | None = None
ProfileField
¶
Bases: Builder
A game stat of the game's own, named for the widget editor.
ProfileData
¶
Bases: Builder