-
Notifications
You must be signed in to change notification settings - Fork 145
Container
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.
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. |
Defines the behavior of the ==
operator. Allows containers to be directly compared according to their type and __hash
return values.
Returns: boolean
Defines the behavior of the tostring
function. All containers follow the format ClassName: hash
.
Returns: string