dcord.types.base

Undocumented in source.

Public Imports

dcord.util.json
public import dcord.util.json;
std.datetime
public import std.datetime;

Members

Aliases

Snowflake
alias Snowflake = ulong

Undocumented in source.

Classes

AsyncChainer
class AsyncChainer(T)

AsyncChainer is a utility for exposing methods that can help chain actions with various delays/resolving patterns.

IModel
class IModel

Base class for all models. Provides a simple interface definition and some utility constructor code.

ModelMap
class ModelMap(TKey, TValue)

ModelMap serves as an abstraction layer around associative arrays that store models. Usually ModelMaps will be a direct mapping of ID (Snowflake) -> Model.

Functions

toString
string toString(Snowflake s)

Undocumented in source. Be warned that the author may not have intended to support it.

toSysTime
SysTime toSysTime(Snowflake s)

Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

Model
mixintemplate Model()

Base template for all models. Provides utility methods for AsyncChaining and a base constructor that calls the parent IModel constructor.

Variables

DISCORD_EPOCH
ulong DISCORD_EPOCH;

Undocumented in source.

Meta