Discord
Send messages, manage channels, and moderate members in Discord servers. In Appbricx, your workflows and server functions call it by name once it is connected.
What you can do
16 actions, each one call from a workflow or a server function. Triggers come from your app: a row changing, a schedule or a webhook.
- Ban guild memberBans a guild member
ban_guild_member - Create channelcreate a channel
create_channel - Send Message WebhookSend a discord message via webhook
send_message_webhook - Add role to memberAdd Guild Member Role
add_role_to_member - Create guild roleCreates a new role on the specified guild
createGuildRole - Delete channeldelete a channel
delete_channel - Delete guild roleDeletes the specified role from the specified guild
deleteGuildRole - Find channelfind a channel by name
find_channel - List guild membersList Guild Members
list_guild_members - Remove ban from userRemoves the guild ban from a user
remove_ban_from_user - Remove member from guildRemove Guild Member
remove_member_from_guild - Remove role from memberRemove Guild Member Role
remove_role_from_member
Set it up
About two minutes, once per project or once for the whole workspace.
- Open Integrations in the builder
Backend panel, Integrations tab, then Discord. To connect it for every project, use Workspace settings, Integrations.
- Add your credentials
An API key (or token) from your Discord account, pasted once. It is stored encrypted and only read on the server when an action runs.
- API key From Discord's settings
- Call an action
From a workflow, by integration id and action name. The call answers with success, output and, when it fails, the reason.
Workflow // .workflow.js (native ctx) export async function run(ctx) { const res = await ctx.integrations.invoke("discord", "ban_guild_member", { "guild_id": "<guild_id>", "user_id": "<user id>" }); if (!res.success) throw new Error(res.error); ctx.log.info("Discord answered", { output: res.output }); }
More in Communication
Discord and its logo are trademarks of their owner, shown only to identify the service this integration connects to. Their use does not imply endorsement by, or affiliation with, that company.