DiscordEntity

Base class for Discord entities.

Notes

Inherit it with passing immortal = True to make the subclass weakreferable.

Properties

created_at

When the entity was created.

Returns

created_at : datetime

Methods

__eq__()

Whether this entity's id is equal as the other's.

__ge__()

Whether this entity's id is greater or equal than the other's.

__getattr__()

Drops a rich attribute error.

__gt__()

Whether this entity's id is greater than the other's.

__hash__()

Returns the has value of the entity, what equals to it's id.

__le__()

Whether this entity's id is less or equal than the other's.

__lt__()

Whether this entity's id is less than the other's.

__ne__()

Whether this entity's id is not equal as the other's.