Discord and treg Integration
Connect Discord to treg on visual integration builder following simple steps below. When communication event fired from Discord, it will run actions inside treg app - exactly how you set them in your ai automation. No coding skills required.
- 3-day trial
- Cancel anytime
- Up to 10 minutes quick set up
- GDPR
- Data Encryption
- 2FA
- Local Data Region
Learn about Discord and treg
Detailed info you need to know about Discord and treg integrations in WEXTL. Explore which modules apps support and how you connect them.
How to connect Discord to treg
Set up your Discord and treg integration in 3 simple steps[2]. No coding required. Up to 10 minutes setup.
STEP 1
Connect Discord and treg
Save credentials in WEXTL once. We store them encrypted and reuse the authorization across every workflow[3]. No coding or API skills required.
STEP 2
Build a workflow
Paste selected Discord and treg nodes onto the canvas[4], or describe what you want and WEXTL wires the flow together with AI Builder.
STEP 3
Map your data
Choose which fields need to sync between Discord and treg. Use filters or a JS custom code step in between. Everything is on the canvas.
How does the integration between Discord and treg work in WEXTL?
WEXTL exposes actions and triggers for Discord and treg that help you connect apps and automate repetitive tasks[1]. A trigger is an event that happens, and an action is a step that performs when the event has occurred.
Discord triggerstreg actions
Discord modules
- Add a Group DM User Brings a participant into a group chat. Use Access Token for the OAuth2 token granted with gdm.join and Nick to set a nickname.
- Add a Guild Member Joins a user to a guild using the OAuth2 Access Token they granted. Set Roles, Nick, Mute or Deaf in the same call. Output includes when they Joined.
- Add a Guild Member Role Grants a role to someone in the guild. Delete a Guild Member Role takes it away again.
- Add a Lobby Member Includes a user in a lobby, with optional Metadata, Flags and Additional Name for that member.
- Add a Message Reaction Reacts with a Unicode emoji, or a custom emoji written as name:id, on a message. Delete Your Own Reaction undoes it.
- Add a Thread Member Lets a user into a thread. Delete a Thread Member removes them.
- Consume an Entitlement Marks a single entitlement as used up for your application. Get an Entitlement reads the same record.
- Create a Bulk Guild Ban Bans a list of users from a guild together. Output lists the Banned Users and the Failed Users.
- Create a Channel Invite Makes an invitation link for a channel. Use Max Age for how many seconds it lasts (0 for never) and Max Uses to limit how often it can be used.
- Create a DM Opens a one-to-one direct message with a guild member, or a group direct message built from Access Tokens and Nicks. The response has the new channel Id.
- Create a Guild Application Command Adds a command available in one guild only. Use Options for its options, plus Contexts and Integration Types for where it can be used. Output includes the Version.
- Create a Guild Ban Bans a member from the guild, with Delete Message Seconds or Delete Message Days to clear their recent messages as well. Remove a Guild Ban reverses it.
- Create a Guild Channel Makes a channel in a guild. Use Type for text, voice, category, announcement, stage or forum, and Topic, Parent ID and Permission Overwrites to shape the rest.
- Create a Guild Emoji Uploads an emoji to a guild from a Name and image data, optionally tied to particular Roles.
- Create a Guild Prune Kicks members who were inactive for Days. Add Include Roles to also reach members holding those roles, and Compute Prune Count to get the total back.
- Create a Guild Role Creates a role from a Name, Color, Permissions, Hoist or Mentionable setting. Output includes the new Position.
- Create a Guild Scheduled Event Schedules an event with Name, Scheduled Start Time, Privacy Level and an Entity Type of External, Stage Instance or Voice. Add a Description, Image or Recurrence Rule.
- Create a Guild Scheduled Event Exception Overrides a single occurrence of a recurring event, located by Original Scheduled Start Time. Shift it to a different Scheduled Start Time, or skip it entirely via Is Canceled.
- Create a Guild Soundboard Sound Uploads a clip to the guild soundboard, optionally with a Volume and an Emoji ID or Emoji Name. Output includes the Sound Id.
- Create a Guild Sticker Uploads a File as a sticker for a guild, labelled with a Name and Tags, plus an optional Description. Output includes the Format Type.
- Create a Guild Template Saves how a guild is set up as a reusable template named Name. Output includes the template Code and Usage Count.
- Create a Linked Lobby Guild Invite for a User Creates an invitation, addressed to a single guild member, for the guild that a lobby is linked to. Returns the invite Code.
- Create a Linked Lobby Guild Invite for Yourself Makes an invite for the connected account that leads into the guild linked with a lobby. Returns the invite Code.
- Create a Lobby Starts a lobby for your application. Add Members straight away, attach Metadata, and set Idle Timeout Seconds to shut an idle lobby down.
- Create a Lobby Message Posts text, embeds, components or attachments to everyone in a lobby. The Content limit is 2000 characters.
- Create a Message Sends a message into a channel. Fill Content (2000 characters at most), Embeds or Components, attach up to 10 Files, add a Poll, or turn on TTS.
- Create a Partner SDK Bot Token Issues a Partner SDK token for a bot working on behalf of the External User ID. Output includes the Access Token, Refresh Token and Expires In.
- Create a Partner SDK Bot Unmerge Sends the bot version of a Partner SDK unmerge request for an External User ID. Create a Partner SDK Unmerge is the other version.
- Create a Partner SDK Token Trades an External Auth Token of an External Auth Type for a Partner SDK token for a Client ID. Add a Client Secret if you have one. Output includes the Refresh Token.
- Create a Partner SDK Unmerge Unmerges a provisional account from an external one in the Partner SDK, with an External Auth Token and Type for the Client ID.
- Create a Pin Pins a chosen message in a channel. Delete a Pin removes it again.
- Create a Stage Instance Starts a stage instance for a Topic. Use Privacy Level to set who can see it and Send Start Notification to announce the start. Output includes the Discoverable Disabled setting.
- Create a Thread Creates a thread directly in a channel rather than from a message. Use Type for a public, private or announcement thread.
- Create a Thread From a Message Branches a discussion off one message into a new thread called Name. Use Auto Archive Duration to set when it closes after inactivity.
- Create an Application Command Registers a global command named Name for an application. Use Type for a chat input, user, message or primary entry point command, and Options to define its options.
- Create an Application Emoji Uploads a custom emoji to your application from image data. Its Animated flag is in the output.
- Create an Auto Moderation Rule Sets up an auto moderation rule in a guild, triggered by an Event Type and a Trigger Type such as Keyword or Mention Spam. Use Actions to set what happens, Exempt Roles and Exempt Channels to skip some, and Enabled to turn it on.
- Create an Entitlement Grants a SKU to a guild or user of your application. Output includes when it Starts At and Ends At.
- Create an Interaction Response Replies to an interaction. Set Type for the kind of reply and use Data for the content. Turn on With Response to get the Interaction in the output.
- Create or Join a Lobby Joins the lobby that matches a Secret, making it when none exists. Attach Lobby Metadata to the lobby and Member Metadata to yourself. Output includes its Members.
- Crosspost a Message Publishes a message from an announcement channel to the channels that follow it. Output includes its Content and Attachments.
- Delete a Channel Deletes a channel by Channel ID, or closes a DM or thread. The deleted channel is returned with its Name and Type.
- Delete a Channel Permission Overwrite Removes the permission overwrite that a role or member holds in a Discord channel.
- Delete a Group DM User Removes a participant from a group direct message by User ID.
- Delete a Guild Application Command Deletes a command that an application added to a single server, found by its Command ID.
- Delete a Guild Emoji Deletes a guild emoji by Emoji ID. Add an Audit Log Reason to note the removal.
- Delete a Guild Integration Unlinks an integration, using Guild ID and Integration ID. Add Audit Log Reason to record a reason in the guild audit log.
- Delete a Guild Member Kicks a member from a guild. Use Audit Log Reason to say why.
- Delete a Guild Member Role Revokes a role from a guild member. Use Audit Log Reason to record why.
- Delete a Guild Role Deletes a role from the guild role list and returns its Id. Use Audit Log Reason to note why.
treg modules
- Accept an Invite Accepts an invitation by its Invite ID and joins the team that sent it.
- Call Tool Calls any catalog tool by its ID, such as moz.web.url.metrics or the routed treg.web.search, and returns the provider answer with its cost. Calls are billed per use, and a server failure is not retried.
- Clear a Capability Pin Removes the pin of one Capability, so routed calls go back to picking a provider by themselves.
- Connect With a Token Links a provider account with a pasted Token instead of OAuth sign-in. The token is masked in logs.
- Create a Deny Rule Blocks calls that match a Host, Path Prefix or Method, optionally for one user or project. Use Note to explain the rule later.
- Create a Project Sets up a project under a team so that spend and tool access can be grouped there.
- Create a Secret Stores a secret on treg so your registered tools can use it without you holding it. The secret is sent once and masked in logs.
- Create a Team Creates a new team with your account as its owner. Fill Name with the team name, which also seeds the slug.
- Create a Tool Registers your own API as a tool that treg calls with a saved secret, so agents can reach it by name. Fill Base URL with the API root, and Auth In and Auth Format with how the secret is attached.
- Create an Agent Creates a machine user for a team with its own caps and tool access, so an agent can call treg without a person account. Its credentials appear in the output.
- Create an API Key Issues a fresh API key for a team and labels it with Name. The full key appears once in the output, so store it before the run ends.
- Create an Invite Invites someone by Email to join a team in the chosen Role. The invite lapses after Expires in Days. Use Tool Access to narrow what the member may call.
- Delete a Bundle Deletes a bundle and detaches the tools and secrets that were grouped in it.
- Delete a Deny Rule Removes one block rule by its Rule ID, so matching calls are allowed again.
- Delete a Project Deletes one project by its Project ID. Spend recorded under it stays in the ledger.
- Delete a Secret Deletes a stored secret. Tools that still rely on it stop authenticating.
- Delete a Tag Budget Removes the override of one tag value, so it falls back to the dimension default.
- Delete a Tool Unregisters a tool, after which agents that call it by name get a not found answer.
- Disable an API Key Switches an API key off so calls made with it are refused. Enable an API Key turns it back on without issuing a new secret.
- Enable an API Key Turns a disabled API key back on so it accepts calls again.
- Find Catalog Tools Looks up catalog tools for a short phrase, optionally inside one Platform. It is the shelf-first companion to Search the Catalog.
- Get a Bundle Loads a bundle through its Bundle ID, with the recipe and the tools it groups.
- Get a Bundle by Name Finds a bundle by Bundle Name and returns the recipe and member tools.
- Get a Call Shows one call: the tool that ran, what it cost and how it ended. Take the Call ID from the output of Call Tool.
- Get a Call Result Fetches the stored answer of a finished catalog call, which recovers a lost response or reads the outcome of an asynchronous task.
- Get a Catalog Endpoint Opens one catalog endpoint with its native parameters, the cost block and a ready call line.
- Get a Catalog Platform Opens one platform shelf by its slug and lists its capabilities and endpoints with prices. Turn on Include Hidden to see unlisted endpoints.
- Get a Catalog Provider Shows what one provider, such as DataForSEO or Moz, offers through treg and how its tools are priced.
- Get a Hub Run Reads a hub run through its Run ID to see whether it finished and what it returned.
- Get a Hub Tool Reads one hub tool by its ID: manifest, readme, price and listing state.
- Get a Spend Report Reads spend over time, grouped by day, week or month and stacked by key or provider. Fill From and To to bound the window.
- Get a Tag Usage Report Breaks spend down by the values of one Tag Key over the last Days. This is the figure that reconciles money.
- Get a Tool by Name Looks up one registered tool by the Tool Name that agents call it with.
- Get an Agent Connection Returns the settings an agent needs to connect with one of its keys. The output holds secrets, so treat it as private.
- Get API Key Spend Reads what each API key of a team has spent so far, which tells you which key drives the cost before any caps are set.
- Get Billing Reads the billing state of the active team: credit left and top-up settings.
- Get Billing History Reads the payment and charge ledger a page at a time. The answer carries the cursor for the next page.
- Get Catalog Totals Returns the headline numbers of the catalog, such as how many tools and providers it holds, plus the version of treg that answers.
- Get My Usage Reads the call count and spend of the signed-in user, across all teams.
- Get Team Settings Reads the spend caps, archive switch and budget dimensions that are configured for a team.
- Get Team Usage Summarises what a team used over the last Days: calls, providers and totals.
- Get the Activity Feed Reads the feed of what happened on the team, a page at a time. Use Before with the cursor of the last answer to read older entries.
- Get the Hub Tool Health Reads the latest health check result of a hub tool, which shows whether its own check still passes.
- Get the Provider Health Reports how treg currently sees each provider, which helps decide whether to skip one that is failing.
- Get the Team Balance Reads the credit balance of a team and its latest ledger rows. Move Offset forward to page through older rows.
- Get the Team First Call Checks whether the team has made a first call yet, and gives the call that did.
- Hide an API Key Tucks an API key out of the dashboard list while it keeps working. List API Keys shows it again with Include Hidden.
- Host Media Uploads a file and returns a public URL for it, which tools that need a link to an image or video can use. Give the File and its Content Type.
- List Admins Lists only the members of a team who can administer it.
- List Agents Lists the agent accounts of a team with their caps and state.
No ready-made Discord and treg automation yet. Describe your own in the AI Workflow Builder.
Build a Discord and treg workflow with AI
Describe your automation with Discord and treg - and our AI Workflow Builder will make it done for you.
Explore alternative integrations
There are other apps[9] supported by WEXTL that can be paired with Discord and treg integrations. Pick any from the list below if the current combination isn't the one you need.
Frequently asked questions
Common questions about connecting Discord and treg.
References
List of sources used to gather information about the Discord and treg integration.
- Discord and treg integration source code, module specs and credentials implementation.
- Our Discord and treg integration documentation, structured input and output parameters, scopes, and authentication methods.
- Official vendor API documentation for Discord and treg, used to verify field meanings, authentication flows, and anything our own specs don't fully capture.
- WEXTL® visual workflow builder, anonymized data from our technical support team.
- Discord integration information
- treg integration information
- WEXTL® Scheduling
- WEXTL® Pricing and Trial
- WEXTL® Apps Library
How we write our apps documentation
Explore how WEXTL® crafted Discord and treg integration page documentation. Used sources, the role of AI, and how the team validates the result.

