Skip to content
SinisterRectus edited this page Nov 16, 2019 · 10 revisions

Defines the base methods and properties for all Discord objects and structures. Container classes are constructed internally with information received from Discord and should never be manually constructed.

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

Properties

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.

Methods

__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


Clone this wiki locally