Webhooks & Actions

Post setup, leverage the following features for enhanced management and communication using Discord within your Rewst Workflows.

Webhook Triggers

Webhook triggers in Rewst's Discord integration are all about making your workflows smarter and more responsive. Here's a straightforward look at what they offer:

  • Automated Command Management: They handle the heavy lifting of creating and updating application commands based on your configurations.

  • Custom Interaction Flexibility: While they automate most processes, there's room for manual customization in interactions, ensuring you get exactly what you need.

  • Adaptive Workflows: These triggers stay alert to changes, keeping your workflows in sync with the latest Discord interactions.

Types of Triggers

  • Slash Command Trigger: Initiates workflows for specific slash commands in guild channels.

  • User Command Trigger: Responds to user commands in guilds.

  • Message Command Trigger: Activates workflows for particular message commands in guilds.

  • Custom Interaction Trigger: Handles unique interaction events, needing a bit of setup as per Discord's guidelines.

Setting Up Triggers

  • Command Name: Decide the command's name that will kick off your trigger.

  • Command Type: Choose from Slash, User, Message, or Custom commands.

  • Guild ID: Identify the server where this magic will happen.

Endpoints & Actions

Channel Actions

Action Name
Method
Endpoint
Parameters

List Guild Channels

GET

/guilds/{guild_id}/channels

(Required) guild_id

Create Guild Channel

POST

/guilds/{guild_id}/channels

(Required) guild_id, (Optional) json_body

Command Actions

Action Name
Method
Endpoint
Parameters

Create Guild Command

POST

/applications/{application_id}/guilds/{guild_id}/commands

(Required) guild_id, (Required) json_body

Delete Guild Command

DELETE

/applications/{application_id}/guilds/{guild_id}/commands/{command_id}

(Required) guild_id, (Required) command_id

List Guild Commands

GET

/applications/{application_id}/guilds/{guild_id}/commands

(Required) guild_id

Edit Guild Command

PATCH

/applications/{application_id}/guilds/{guild_id}/commands/{command_id}

(Required) guild_id, (Required) command_id, (Required) json_body

Emoji Actions

Action Name
Method
Endpoint
Parameters

List Guild Emojis

GET

/guilds/{guild_id}/emojis

(Required) guild_id

Get Guild Emoji by ID

GET

/guilds/{guild_id}/emojis/{emoji_id}

(Required) guild_id, (Required) emoji_id

Create Guild Emoji

POST

/guilds/{guild_id}/emojis

(Required) guild_id, (Required) json_body

Guild Actions

Action Name
Method
Endpoint
Parameters

Get Current User Guilds

GET

/users/@me/guilds

None

Get Guild Info by ID

GET

/guilds/{guild_id}

(Required) guild_id

Interaction Actions

Action Name
Method
Endpoint
Parameters

Create Followup Message

POST

/webhooks/{application_id}/{interaction_token}

(Required) interaction_token, (Required) json_body

Edit Original Interaction Response

PATCH

/webhooks/{application_id}/{interaction_token}/messages/@original

(Required) interaction_token, (Required) json_body

User Actions

Action Name
Method
Endpoint
Parameters

Get Current Authorized User Info

GET

/users/@me

None

Get User Info by ID

GET

/users/{userid}

(Required) userid

Search Guild Members

GET

/guilds/{guild_id}/members/search

(Required) guild_id, (Required) query, (Optional) limit

Add Role to User

PUT

/guilds/{guild_id}/members/{user_id}/roles/{role_id}

(Required) guild_id, (Required) user_id, (Required) role_id

Create Guild Role

POST

/guilds/{guild_id}/roles

(Required) guild_id, (Required) json_body

Last updated