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.
-
class
curious.dataclasses.presence.
Presence
(**kwargs) → None[source]¶ Bases:
object
Represents a presence on a member.
Parameters: -
_status
¶ The :class:~.Status` for this presence.
-
-
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.
-