Event

Base template for events from discord. Handles basic initilization, and some deferred-function code.

Constructors

this
this(Client c, VibeJSON obj)

Undocumented in source.

Members

Functions

defer
void defer(EventDeferredFunc f)

Used to defer a functions execution until after this event has passed through all listeners, and is ready to be destroyed.

resolveDeferreds
void resolveDeferreds()

Calls all deferred functions.

Variables

client
Client client;

Undocumented in source.

deferred
EventDeferredFunc[] deferred;

Array of functions to be ran when this event has completed its pass through the any listeners, and is ready to be destroyed.

raw
VibeJSON raw;

Undocumented in source.

Meta