Automate Discord with TypeScript
Connect a customer-managed Discord bot to work with channels, messages, threads, members, roles, moderation, invites, webhooks, emojis, and scheduled events. Start automations from Discord's signed HTTP application and entitlement events.
import { automation } from "automate.ax"
import { discord } from "automate.ax/discord"
export default automation("Welcome Discord installs", () => {
const authorization = discord.onApplicationAuthorized()
discord.sendMessage({
channelId: "123456789012345678",
content:
"Thanks for installing the app, " +
(authorization.data.user.globalName ?? authorization.data.user.username),
})
})What you can do
Actions
- Read servers, channels, messages, members, roles, and bans
- Send messages, replies, reactions, pins, and threads
- Manage channels, members, roles, invites, webhooks, and emojis
- Manage Auto Moderation rules and scheduled events
Triggers
- Any signed HTTP Event Webhook event
- Application authorization and deauthorization
- Entitlement creation, update, and deletion