Actions

The actions are the main part of the bot. They are used to perform actions when a trigger is met. You can find more information about how to use them here.


All Actions

addReaction

Add a reaction to a message. The reaction can be an emoji or a custom emoji.

- id: addReaction
  args:
    value: "✅"

addRole

Add a role to a member. The role can be a string or an array of strings.

- id: addRole
  args:
    value: "Admin" # Role ID or name
- id: addRole
  args:
    value:
      - "Admin" # Role ID or name
      - "Moderator" # Role ID or name

deleteMessage

Delete a message.

- id: deleteMessage

pinMessage

Pin a message.

- id: pinMessage

removeReaction

Remove a reaction from a message. The reaction can be an emoji or a custom emoji. If no value is provided, every reaction is removed.

- id: removeReaction
  args:
    value: "✅"

removeRole

Remove a role from a member. The role can be a string or an array of strings.

- id: removeRole
  args:
    value: "Admin" # Role ID or name
- id: removeRole
  args:
    value:
      - "Admin" # Role ID or name
      - "Moderator" # Role ID or name

reply

Reply to a message or an interaction. You can see the message configuration for more information. Can triggers actions

- id: reply
  args:
    content: "Hello there !"

sendMessage

Send a message. You can see the message configuration for more information. Can triggers actions

- id: sendMessage
  args:
    embeds:
      - title: "Hello there !"
        description: "This is a test message"
        color: "#00ff00"

editMessage

Edit a message. You can see the message configuration for more information.

- id: editMessage
  args:
    content: "Hello there !"
    embeds:
      - title: "This is an edit"
        description: "This is a test message"

sendPrivateMessage

Send a private message. You can see the message configuration for more information.

- id: sendPrivateMessage
  args:
    content: "Hello %user_mention% !"

sendRequest

Send a http request. New placeholders will be added when you trigger an action after this action. With the format %data_<object>%. If you want a value that is inside an object, you can add the path with underscore _. For example, if you want the value of user.id, you can use %data_user_id%. *Can triggers actions

- id: sendRequest
  args:
    value: 'https://api.example.com' # URL
    method: 'POST' # Method, optional. Default is GET
    headers: # Optional
      Content-Type: 'application/json' # Headers
    body: # Optional
      key: 'value' # Body

startThread

Start a thread. If the value is a array, a random value will be selected. *Can triggers actions

- id: startThread
  args:
    value: "Hello there !"
- id: startThread
  args:
    value:
      - "Thread 1"
      - "Thread 2"

unpinMessage

Unpin a message.

- id: unpinMessage

openForm

Open a form. Requires the Forms addon.

- id: openForm
  args:
    value: "form_id" # Form ID

addInviteBonus

Add bonus invites to a user. Requires the Invite Traker addon.

- id: addInviteBonus
  args:
    amount: 5 # Amount of bonus invites

removeInviteBonus

Remove bonus invites to a user. Requires the Invite Traker addon.

- id: removeInviteBonus
  args:
    amount: 5 # Amount of bonus invites

setInviteBonus

Set bonus invites to a user. Requires the Invite Traker addon.

- id: setInviteBonus
  args:
    amount: 5 # Amount of bonus invites