UserPresence - BestMordaEver/Discordia GitHub Wiki

extends Container

Defines the base methods and/or properties for classes that represent a user's current presence information. Note that any method or property that exists for the User class is also available in the UserPresence class and its subclasses.

This is an abstract base class. Direct instances should never exist.

Properties Inherited From Container

Name Type Description
client Client A shortcut to the client object to which this container is visible.
parent Container/Client The parent object of to which this container is a child. For example, the parent of a role is the guild in which the role exists.

Properties

Name Type Description
competing Activity/nil The competing Activity that this presence represents.
custom Activity/nil The custom status Activity that this presence represents.
desktopStatus string The user's desktop status (online, dnd, idle, offline).
listening Activity/nil The listening Activity that this presence represents.
mobileStatus string The user's mobile status (online, dnd, idle, offline).
playing Activity/nil The game Activity that this presence represents.
status string The user's overall status (online, dnd, idle, offline).
streaming Activity/nil The streaming Activity that this presence represents.
user User The user that this presence represents.
watching Activity/nil The watching Activity that this presence represents.
webStatus string The user's web status (online, dnd, idle, offline).

Methods Inherited From Container

__eq()

Defines the behavior of the == operator. Allows containers to be directly compared according to their type and __hash return values.

Returns: boolean


__tostring()

Defines the behavior of the tostring function. All containers follow the format ClassName: hash.

Returns: string


Methods

__hash()

Returns UserPresence.user.id

Returns: string


⚠️ **GitHub.com Fallback** ⚠️