curious.dataclasses.presence

Wrappers for Status objects.

Classes

Game(**kwargs) Represents a game object.
GameType Represents a game’s type.
Presence(**kwargs) Represents a presence on a member.
RichPresence(**fields) Represents a Rich Presence.
Status Represents a Member’s status.
class curious.dataclasses.presence.Status[source]

Bases: enum.Enum

Represents a Member’s status.

ONLINE = 'online'

Corresponds to online (green dot).

OFFLINE = 'offline'

Corresponds to offline (gray dot).

IDLE = 'idle'

Corresponds to idle (yellow dot).

DND = 'dnd'

Corresponds to Do Not Disturb (red dot).

INVISIBLE = 'invisible'

Corresponds to invisible (gray dot).

class curious.dataclasses.presence.GameType[source]

Bases: enum.IntEnum

Represents a game’s type.

PLAYING = 0

Shows the Playing text.

STREAMING = 1

Shows the Streaming text.

LISTENING_TO = 2

Shows the Listening to text.

WATCHING = 3

Shows the Watching text.

class curious.dataclasses.presence.Game(**kwargs) → None[source]

Bases: object

Represents a game object.

Parameters:
  • name – The name for the game. 100 characters max.
  • url – The URL for the game, if streaming.
  • type – A GameType for this game.
type

The type of game this is.

url

The stream URL this game is for.

name

The name of the game being played.

to_dict()[source]
Return type:dict
Returns:The dict representation of this object.
class curious.dataclasses.presence.Presence(**kwargs) → None[source]

Bases: object

Represents a presence on a member.

Parameters:
  • status – The Status for this presence.
  • game – The Game for this presence.
_status

The :class:~.Status` for this presence.

_game

The Game for this presence.

status
Return type:Status
Returns:The Status associated with this presence.
game
Return type:Game
Returns:The Game associated with this presence.
strength
Return type:int
Returns:The strength for this status.
class curious.dataclasses.presence.RichPresence(**fields)[source]

Bases: object

Represents a Rich Presence. This class can be created safely for usage with IPCClient.

Parameters:fields – The rich presence fields.
state

The state for this presence.

details

The details for this presence.

assets

The assets for this rich presence. Returns a dict of (large_image, large_text, small_image, small_text).

Return type:dict
party_id

The party ID for this rich presence.

Return type:str
party_size

The size of the party for this rich presence. An array of [size, max].

Return type:List[int]