Skip to content

Rest

Rest = { [M in Method]: (path: P, args: Operation<P, M>["args"]) => Result<P, M> }

Defined in: lib/rest.ts:29

Calls the Discord REST API. Each method takes a route from the Discord API spec.