Liking cljdoc? Tell your friends :D

slash.gateway

Slash functionality for receiving interactions via the Discord gateway.

Slash functionality for receiving interactions via the Discord gateway.
raw docstring

gateway-defaultsclj

Default gateway interaction handlers.

The interaction handlers in this map simply don't do anything.

Default gateway interaction handlers.

The interaction handlers in this map simply don't do anything.
sourceraw docstring

nopclj

No operation function. Returns nil.

No operation function. Returns `nil`.
sourceraw docstring

wrap-response-returnclj

(wrap-response-return handler respond-fn)

Middleware that takes the return value of an interaction handler and consumes it in some way.

This is useful for responding to interactions via REST. The interaction handlers can simply return their response and this middleware uses the given respond-fn to send it to Discord.

respond-fn is a function of 3 parameters: interaction id, interaction token and interaction response.

Middleware that takes the return value of an interaction handler and consumes it in some way.

This is useful for responding to interactions via REST.
The interaction handlers can simply return their response and this middleware
uses the given `respond-fn` to send it to Discord.

`respond-fn` is a function of 3 parameters: interaction id, interaction token and interaction response.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close