Application Info¶
- approximate_guild_count
- approximate_user_install_count
- bot_public
- bot_require_code_grant
- cover_image
- custom_install_url
- description
- guild_id
- icon
- id
- install_params
- interactions_endpoint_url
- name
- owner
- primary_sku_id
- privacy_policy_url
- redirect_uris
- role_connections_verification_url
- rpc_origins
- slug
- summary
- tags
- team
- terms_of_service_url
- verify_key
- asyncget_guild
- class discord.AppInfo(state, data)[source]¶
Represents the application info for the bot provided by Discord.
- bot_public¶
Whether the bot can be invited by anyone or if it is locked to the application owner.
- Type:
- bot_require_code_grant¶
Whether the bot requires the completion of the full OAuth2 code grant flow to join.
- Type:
- verify_key¶
The hex encoded key for verification in interactions and the GameSDK’s GetTicket.
Added in version 1.3.
- Type:
- guild_id¶
If this application is a game sold on Discord, this field will be the guild to which it has been linked to.
Added in version 1.3.
- Type:
Optional[
int]
- primary_sku_id¶
If this application is a game sold on Discord, this field will be the id of the “Game SKU” that is created, if it exists.
Added in version 1.3.
- Type:
Optional[
int]
- slug¶
If this application is a game sold on Discord, this field will be the URL slug that links to the store page.
Added in version 1.3.
- Type:
Optional[
str]
- terms_of_service_url¶
The application’s terms of service URL, if set.
Added in version 2.0.
- Type:
Optional[
str]
- privacy_policy_url¶
The application’s privacy policy URL, if set.
Added in version 2.0.
- Type:
Optional[
str]
- approximate_guild_count¶
The approximate count of guilds to which the app has been added, if any.
Added in version 2.7.
- Type:
Optional[
int]
- approximate_user_install_count¶
The approximate count of users who have installed the application, if any.
Added in version 2.7.
- Type:
Optional[
int]
- redirect_uris¶
The list of redirect URIs for the application, if set.
Added in version 2.7.
- Type:
Optional[List[
str]]
- interactions_endpoint_url¶
The interactions endpoint URL for the application, if set.
Added in version 2.7.
- Type:
Optional[
str]
- role_connections_verification_url¶
The role connection verification URL for the application, if set.
Added in version 2.7.
- Type:
Optional[
str]
- install_params¶
The settings for the application’s default in-app authorization link, if set.
Added in version 2.7.
- Type:
Optional[List[
AppInstallParams]]
- tags¶
The list of tags describing the content and functionality of the app, if set.
Maximium of 5 tags.
Added in version 2.7.
- Type:
Optional[List[
str]]
- custom_install_url¶
The default custom authorization URL for the application, if set.
Added in version 2.7.
- Type:
Optional[
str]
- Parameters:
state (
ConnectionState)data (
AppInfo)
- property cover_image: Asset | None¶
Retrieves the cover image on a store embed, if any.
This is only available if the application is a game sold on Discord.
- class discord.PartialAppInfo(*, state, data)[source]¶
Represents a partial AppInfo given by
create_invite()Added in version 2.0.
- summary¶
If this application is a game sold on Discord, this field will be the summary field for the store page of its primary SKU.
- Type:
- Parameters:
state (
ConnectionState)data (
PartialAppInfo)
- class discord.AppInstallParams(data)[source]¶
Represents the settings for the custom authorization URL of an application.
Added in version 2.7.
- permissions¶
The permissions to request for the bot role in the guild.
- Type:
- Parameters:
data (
AppInstallParams)
- class discord.Team(state, data)[source]¶
Represents an application team for a bot provided by Discord.
- members¶
A list of the members in the team.
Added in version 1.3.
- Type:
List[
TeamMember]
- Parameters:
state (
ConnectionState)data (
Team)
- property owner: TeamMember | None¶
The team’s owner.
- class discord.TeamMember(team, state, data)[source]¶
Represents a team member in a team.
- x == y
Checks if two team members are equal.
- x != y
Checks if two team members are not equal.
- hash(x)
Return the team member’s hash.
- str(x)
Returns the team member’s name with discriminator or global_name.
Added in version 1.3.
- discriminator¶
The team member’s discriminator. This is given when the username has conflicts.
Note
If the user has migrated to the new username system, this will always be “0”.
- Type:
- membership_state¶
The membership state of the member (e.g. invited or accepted)
- Type:
- Parameters:
team (
Team)state (
ConnectionState)data (
TeamMember)