Connect a bot
- Create or select an application in the Discord Developer Portal.
- Open Bot, create the bot if needed, reset its token, and copy the token.
- Open OAuth2 → URL Generator. Select
botandapplications.commands, then select only the server permissions your automations need. - Open the generated URL and install the bot in each server you want to automate.
- In Automate.ax, connect Discord with Bot token and paste the token.
reason input on moderation and management actions to populate the server audit log.
Some actions also depend on privileged Gateway intents configured on the application’s Bot page. Enable Server Members Intent (GUILD_MEMBERS) before using discord.listMembers. Enable Message Content Intent (MESSAGE_CONTENT) when your bot must read message content; without it, Discord can return empty content and related message fields. Verified applications may need Discord’s approval before enabling these intents.
Receive HTTP webhook events
Deploy an automation that uses a Discord trigger, then configure this URL under your application’s Webhooks settings:YOUR_APPLICATION_ID with the application ID from General Information. Discord verifies the endpoint with a signed PING. Enable the application authorization and entitlement events your automation uses.
Discord’s Event Webhooks do not deliver ordinary server messages, reactions, channel changes, or member changes. This integration does not poll for them. Those events require Discord Gateway support, which is not part of the current integration.
Use an account
automations/discord-message.automation.ts
Provider behavior
Automate.ax uses Discord API v10, validates successful responses, and follows Discord’sRetry-After value after a rate limit. Invalid credentials, missing permissions, bad inputs, and role-hierarchy failures stop immediately. Create actions are not replayed automatically when Discord may have accepted the first request.
Exports
discordcontains the packaged Discord actions and triggers.discordAccount("name")selects a named Discord bot connection.
Triggers
- On webhook event
- On application authorized
- On application access removed
- On entitlement created
- On entitlement updated
- On entitlement deleted
Actions
- Add member role
- Add reaction
- Add thread member
- Ban member
- Bulk delete messages
- Create Auto Moderation rule
- Create channel
- Create emoji
- Create invite
- Create role
- Create scheduled event
- Create thread
- Create thread from message
- Create webhook
- Delete Auto Moderation rule
- Delete channel
- Delete channel permission
- Delete emoji
- Delete invite
- Delete message
- Delete role
- Delete scheduled event
- Delete webhook
- End poll
- Get channel
- Get current bot
- Get server
- Get member
- Get message
- Get webhook
- Join thread
- Kick member
- Leave thread
- List active threads
- List Auto Moderation rules
- List bans
- List channel invites
- List channel webhooks
- List channels
- List emojis
- List servers
- List members
- List messages
- List poll answer voters
- List roles
- List scheduled events
- List thread members
- Pin message
- Remove member role
- Remove own reaction
- Remove thread member
- Reply to message
- Send message
- Set channel permission
- Remove member ban
- Unpin message
- Update Auto Moderation rule
- Update channel
- Update emoji
- Update server
- Update member
- Update message
- Update role
- Update scheduled event
- Update webhook