discljord-utils.message-util
bot-message?
(bot-message? event-data)
Was the given event generated by a bot?
bulk-overwrite-guild-application-commands!
(bulk-overwrite-guild-application-commands! discord-message-channel application-id guild-id application-commands)
A version of discljord.message/bulk-overwrite-guild-application-commands! that throws errors.
channel-link
(channel-link channel-id)
Convenience method that creates a link to the given channel-id, for embedding in message bodies
create-dm!
(create-dm! discord-message-channel user-id)
A version of discljord.message/create-dm! that throws errors.
create-interaction-response!
(create-interaction-response! discord-message-channel interaction-id interaction-token response-type & args)
A version of discljord.message/create-interaction-response! that throws errors.
create-message!
(create-message! discord-message-channel channel-id & args)
A version of discljord.message/create-message! that throws errors.
create-reaction!
(create-reaction! discord-message-channel channel-id message-id reaction)
A version of discljord.message/create-reaction! that throws errors.
delete-message!
(delete-message! discord-message-channel channel-id message-id)
A version of discljord.message/delete-message! that throws errors.
delete-original-interaction-response!
(delete-original-interaction-response! discord-message-channel application-id interaction-token & args)
A version of discljord.message/delete-original-interaction-response! that throws errors.
direct-message?
(direct-message? event-data)
Was the given event sent via a Direct Message?
edit-message!
(edit-message! discord-message-channel channel-id message-id & args)
A version of discljord.message/edit-message! that throws errors.
get-channel!
(get-channel! discord-message-channel channel-id)
A version of discljord.message/get-channel! that throws errors.
human-message?
(human-message? event-data)
Was the given event generated by a human?
md-escape
(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).
message-url
(message-url guild-id channel-id message-id)
Convenience method that creates a URL to a specific message
nick-or-user-name
(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.
send-dm!
(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.
user-link
(user-link user-id)
Convenience method that creates a link to the given user-id, for embedding in message bodies