Slash functionality for receiving interactions via the Discord gateway.
Slash functionality for receiving interactions via the Discord gateway.
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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |