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)

property created_at: datetime

The datetime of the snowflake.

id: int

The ID of the snowflake.

class discord_http.object.Snowflake(id)

Bases: object

A class to represent a Discord Snowflake.

Parameters:

id (int)

id: int

The ID of the snowflake.

property created_at: datetime

The datetime of the snowflake.