Object

discord_http.object module

class discord_http.object.PartialBase(*, id)

Bases: Snowflake

A base class for partial objects.

This class is based on the Snowflae class standard, but with a few extra attributes.

Parameters:

id (int)

is_partial() bool

Returns True if the object is partial.

This depends on the class name starting with Partial or not.

Return type:

bool

class discord_http.object.Snowflake(id)

Bases: object

A class to represent a Discord Snowflake.

Parameters:

id (int | str)

property created_at: datetime

The datetime of the snowflake.