Core namespace.
Core namespace.
A map of interaction type code -> interaction type name keyword.
A map of interaction type code -> interaction type name keyword. See https://discord.com/developers/docs/interactions/slash-commands#interaction-object-interaction-request-type
(route-interaction handlers {:keys [type] :as interaction})
Takes a handler map and an interaction and routes the interaction to the correct handler.
The handler map should map each interaction type to one handler function.
The handler functions take the interaction as a parameter.
See slash.gateway/gateway-defaults
and slash.webhook/webhook-defaults
for default handler maps.
The interaction object passed to this function must be given as a Clojure map with keywords as keys.
Takes a handler map and an interaction and routes the interaction to the correct handler. The handler map should map each interaction type to one handler function. The handler functions take the interaction as a parameter. See [[slash.gateway/gateway-defaults]] and [[slash.webhook/webhook-defaults]] for default handler maps. The interaction object passed to this function must be given as a Clojure map with keywords as keys.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close