actions
Actions performed through the client as the current user.
Functions
Section titled “Functions”send-message
Section titled “send-message”send-message(message: outgoing-message)
Send a message. Other plugins’ pre-send hooks run on it.
send-local-message
Section titled “send-local-message”send-local-message(channel-id: snowflake, content: string)
Show a message only the current user can see.
edit-message
Section titled “edit-message”edit-message(channel-id: snowflake, message-id: snowflake, content: string)
delete-message
Section titled “delete-message”delete-message(channel-id: snowflake, message-id: snowflake)
add-reaction
Section titled “add-reaction”add-reaction(channel-id: snowflake, message-id: snowflake, emoji: string)
React with a Unicode emoji or a custom emoji in name:id form.
composer-text
Section titled “composer-text”composer-text() → string
The current content of the focused message input.
insert-composer-text
Section titled “insert-composer-text”insert-composer-text(text: string)
Insert text at the cursor of the focused message input.
navigate
Section titled “navigate”navigate(target: navigation)
request-discord
Section titled “request-discord”request-discord(request: discord-request) → u64
Call Discord’s REST API with the user’s session. The result arrives as event.discord
with the returned ID.