Pincer Objects User#
Connection#
Connection#
- class Connection#
Bases:
APIObject
The connection object that the user has attached.
- show_activity#
Whether activities related to this connection will be shown in presence updates
- Type
- visibility#
If the connection is visible
- Type
- integrations#
An array of partial server integrations
- Type
APINullable[List[
Integration
]]
Integration#
IntegrationExpireBehavior#
IntegrationAccount#
IntegrationApplication#
Integration#
- class Integration#
Bases:
APIObject
Represents a Discord Integration object
- account#
Integration account information
- Type
- enable_emoticons#
Whether emoticons should be synced for this integration (twitch only currently)
- Type
APINullable[
bool
]
- expire_behavior#
The behavior of expiring subscribers
- Type
APINullable[
IntegrationExpireBehavior
]
- application#
The bot/OAuth2 application for discord integrations
- Type
APINullable[
IntegrationApplication
]
User#
VisibilityType#
User#
- clsUser.from_id
- asyncget_avatar
- defget_avatar_url
- asyncget_dm_channel
- asyncsend
- class User#
Bases:
APIObject
Represents a Discord user. This can be a bot account or a human account.
- accent_color#
The user’s banner color encoded as an integer representation of hexadecimal color code
- Type
APINullable[Optional[
int
]]
- banner_color#
The color of the user’s banner
- Type
APINullable[Optional[
Color
]]
The type of Nitro subscription on a user’s account
- Type
APINullable[
int
]
- system#
Whether the user is an Official Discord System user (part of the urgent message system)
- Type
APINullable[
bool
]
- classmethod await from_id(client, user_id)#
- Parameters
client –
user_id –
- await get_avatar(size=512, ext='png')#
This function is a coroutine. Get the user’s avatar as a Pillow image.
- Parameters
size – The size of the image to get. Defaults to 512.
ext – The file extension to use. Defaults to ‘png’.
- Returns
The user’s avatar as a Pillow image.
- Return type
class: Image
- get_avatar_url(size=512, ext='png')#
Returns the url of the user’s avatar.
The user their premium type in a usable enum.
- Type
APINullable[
PremiumTypes
]
- await send(message)#
Sends a message to a user.
- Parameters
message (
MessageConvertable
) – Message to be sent to the user.
Voice State#
VoiceState#
- class VoiceState#
Bases:
APIObject
,ChannelProperty
,GuildProperty
Used to represent a user’s voice connection status
- member#
The guild member this voice state is for
- Type
APINullable[
GuildMember
]