EDA.Event.Raw (EDA v0.3.0)

Copy Markdown View Source

Fallback for unrecognized Discord events.

Summary

Functions

Wraps an unknown event with atomized top-level keys.

Types

t()

@type t() :: %EDA.Event.Raw{data: map(), event_type: String.t()}

Functions

from_raw(event_type, data)

@spec from_raw(String.t(), map()) :: t()

Wraps an unknown event with atomized top-level keys.