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.EnumRepresents 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.IntEnumRepresents a game’s type.
-
PLAYING= 0¶ Shows the
Playingtext.
-
STREAMING= 1¶ Shows the
Streamingtext.
-
LISTENING_TO= 2¶ Shows the
Listening totext.
-
WATCHING= 3¶ Shows the
Watchingtext.
-
-
class
curious.dataclasses.presence.Game(**kwargs) → None[source]¶ Bases:
objectRepresents a game object.
Parameters: - name – The name for the game. 100 characters max.
- url – The URL for the game, if streaming.
- type – A
GameTypefor 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.
-
class
curious.dataclasses.presence.Presence(**kwargs) → None[source]¶ Bases:
objectRepresents a presence on a member.
Parameters: -
_status¶ The :class:~.Status` for this presence.
-
-
class
curious.dataclasses.presence.RichPresence(**fields)[source]¶ Bases:
objectRepresents 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.
-