Skip to content

actions

Actions performed through the client as the current user.

send-message(message: outgoing-message)

Send a message. Other plugins’ pre-send hooks run on it.

send-local-message(channel-id: snowflake, content: string)

Show a message only the current user can see.

edit-message(channel-id: snowflake, message-id: snowflake, content: string)

delete-message(channel-id: snowflake, message-id: snowflake)

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() → string

The current content of the focused message input.

insert-composer-text(text: string)

Insert text at the cursor of the focused message input.

navigate(target: navigation)

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.