Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 5.57 KB

webhooks-and-actions.md

File metadata and controls

55 lines (33 loc) · 5.57 KB
description
Post setup, leverage the following features for enhanced management and communication using Discord within your Rewst Workflows.

Webhooks & Actions

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 NameMethodEndpointParameters
List Guild ChannelsGET/guilds/{guild_id}/channels(Required) guild_id
Create Guild ChannelPOST/guilds/{guild_id}/channels(Required) guild_id, (Optional) json_body

Command Actions

Action NameMethodEndpointParameters
Create Guild CommandPOST/applications/{application_id}/guilds/{guild_id}/commands(Required) guild_id, (Required) json_body
Delete Guild CommandDELETE/applications/{application_id}/guilds/{guild_id}/commands/{command_id}(Required) guild_id, (Required) command_id
List Guild CommandsGET/applications/{application_id}/guilds/{guild_id}/commands(Required) guild_id
Edit Guild CommandPATCH/applications/{application_id}/guilds/{guild_id}/commands/{command_id}(Required) guild_id, (Required) command_id, (Required) json_body

Emoji Actions

Action NameMethodEndpointParameters
List Guild EmojisGET/guilds/{guild_id}/emojis(Required) guild_id
Get Guild Emoji by IDGET/guilds/{guild_id}/emojis/{emoji_id}(Required) guild_id, (Required) emoji_id
Create Guild EmojiPOST/guilds/{guild_id}/emojis(Required) guild_id, (Required) json_body

Guild Actions

Action NameMethodEndpointParameters
Get Current User GuildsGET/users/@me/guildsNone
Get Guild Info by IDGET/guilds/{guild_id}(Required) guild_id

Interaction Actions

Action NameMethodEndpointParameters
Create Followup MessagePOST/webhooks/{application_id}/{interaction_token}(Required) interaction_token, (Required) json_body
Edit Original Interaction ResponsePATCH/webhooks/{application_id}/{interaction_token}/messages/@original(Required) interaction_token, (Required) json_body

User Actions

Action NameMethodEndpointParameters
Get Current Authorized User InfoGET/users/@meNone
Get User Info by IDGET/users/{userid}(Required) userid
Search Guild MembersGET/guilds/{guild_id}/members/search(Required) guild_id, (Required) query, (Optional) limit
Add Role to UserPUT/guilds/{guild_id}/members/{user_id}/roles/{role_id}(Required) guild_id, (Required) user_id, (Required) role_id
Create Guild RolePOST/guilds/{guild_id}/roles(Required) guild_id, (Required) json_body