Liking cljdoc? Tell your friends :D

discljord-utils.message-util


bot-message?clj

(bot-message? event-data)

Was the given event generated by a bot?

Was the given event generated by a bot?
sourceraw docstring

(channel-link channel-id)

Convenience method that creates a link to the given channel-id, for embedding in message bodies

Convenience method that creates a link to the given channel-id, for embedding in message bodies
sourceraw docstring

create-dm!clj

(create-dm! discord-message-channel user-id)

A version of discljord.message/create-dm! that throws errors.

A version of discljord.message/create-dm! that throws errors.
sourceraw docstring

create-message!clj

(create-message! discord-message-channel channel-id & args)

A version of discljord.message/create-message! that throws errors.

A version of discljord.message/create-message! that throws errors.
sourceraw docstring

create-reaction!clj

(create-reaction! discord-message-channel channel-id message-id reaction)

A version of discljord.message/create-reaction! that throws errors.

A version of discljord.message/create-reaction! that throws errors.
sourceraw docstring

delete-message!clj

(delete-message! discord-message-channel channel-id message-id)

A version of discljord.message/delete-message! that throws errors.

A version of discljord.message/delete-message! that throws errors.
sourceraw docstring

direct-message?clj

(direct-message? event-data)

Was the given event sent via a Direct Message?

Was the given event sent via a Direct Message?
sourceraw docstring

edit-message!clj

(edit-message! discord-message-channel channel-id message-id & args)

A version of discljord.message/edit-message! that throws errors.

A version of discljord.message/edit-message! that throws errors.
sourceraw docstring

get-channel!clj

(get-channel! discord-message-channel channel-id)

A version of discljord.message/get-channel! that throws errors.

A version of discljord.message/get-channel! that throws errors.
sourceraw docstring

human-message?clj

(human-message? event-data)

Was the given event generated by a human?

Was the given event generated by a human?
sourceraw docstring

md-escapeclj

(md-escape s)
(md-escape s code-fence?)

Escapes the given string for Discord's dialect of markdown, optionally specifying whether the string will appear within a code fence or not (in which case the rules are different).

Escapes the given string for Discord's dialect of markdown, optionally specifying whether the string will appear within a code fence or not (in which case the rules are different).
sourceraw docstring

message-urlclj

(message-url guild-id channel-id message-id)

Convenience method that creates a URL to a specific message

Convenience method that creates a URL to a specific message
sourceraw docstring

nick-or-user-nameclj

(nick-or-user-name event-data)

Convenience method that returns the nickname, or (if there isn't one) username, of the author of the given message.

Convenience method that returns the nickname, or (if there isn't one) username, of the author of the given message.
sourceraw docstring

send-dm!clj

(send-dm! discord-message-channel user-id message)

Convenience method that creates a DM channel to the specified user and sends the given message to them.

Convenience method that creates a DM channel to the specified user and sends the given message to them.
sourceraw docstring

timestamp-tagcljmultimethod

Convenience method that creates a Discord 'dynamic timestamp' tag for the provided date value and (optional) Discord format specifier (a character; one of \d \f \t \D \F \R \T - see https://www.reddit.com/r/discordapp/comments/ohmxrc/new_inline_dynamic_timestamps_that_anyone_can_type/ for examples).

Convenience method that creates a Discord 'dynamic timestamp' tag for the provided date value and (optional) Discord format specifier (a character; one of \d \f \t \D \F \R \T - see https://www.reddit.com/r/discordapp/comments/ohmxrc/new_inline_dynamic_timestamps_that_anyone_can_type/ for examples).
sourceraw docstring

(user-link user-id)

Convenience method that creates a link to the given user-id, for embedding in message bodies

Convenience method that creates a link to the given user-id, for embedding in message bodies
sourceraw docstring

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

× close