Unify Integrations
Logo
Discord

Discord

Logo

3 mins READ

Discord integration enhances your application by enabling efficient channel management, messaging, and invites, leading to improved communication and user engagement.

Connecting your application to Discord enhances functionality and communication. With Discord’s API, you can manage channels, messages, and invites. 

Authentication

Before you begin, ensure you have the required information.

  • Connection Name: Choose a meaningful name for your connection. This name helps you identify the connection within your application or integration settings. It could be something descriptive like "MyAppDiscordIntegration"

  • Authentication Type: Select the type of authentication for connecting to your Discord account.

  • OAuth (default): Sign in to Discord and authorize UnifyApps when prompted.

  • OAuth with Client Credentials: Use your own Discord application. Enter its Client ID, Client Secret and Bot Token, then choose the Scopes and Bot permissions the connection needs.

OAuth with Client Credentials

  1. Visit the Discord Developer Portal and log in with your Discord account. For more information on bots see bots vs user accounts.

  2. Click New Application and provide a name for your application.

  3. Navigate to the Bot tab and click Add Bot to create a new bot for your application.

  4. Under TOKEN, click Reset Token to generate your bot token.

  5. Copy and securely store the bot token to prevent unauthorized access.

    Frame 181.png
    Frame 181.png

Then finish the setup:

  1. Open the OAuth2 tab of your application and copy the Client ID and Client Secret.

  2. In UnifyApps, copy the Callback URL shown in the connection form and add it as a redirect URL in the OAuth2 tab.

  3. Enter the Client ID, Client Secret and Bot Token in the connection form, select the Scopes and Bot permissions, and authorize the connection.

Actions

Action

Description

Add guild member role

Adds a guild member role in Discord

Create channel

Creates channel for a guild in Discord

Create channel invite

Creates channel invite in Discord

Delete channel

Deletes a channel from a guild in Discord

Delete channel invite

Deletes invite for a channel in Discord

Delete guild member role

Deletes a guild member role in Discord

Delete message

Deletes channel message in Discord

Get authenticated user

Retrieves authenticated user from Discord

Get channel

Retrieves a guild's channel from Discord

Get channel invite

Retrieves invite for a channel in Discord

Get guild role

Retrieves a guild role from Discord

Get user

Retrieves a user from Discord

List channel invites

Lists invites for a channel in Discord

List channel messages

Lists messages for a channel in Discord

List channels

Lists guild's channels from Discord

List guild roles

Retrieves all the guild roles from Discord

List guilds

Lists all the guilds in Discord

Search guild members

Retrieves members for a guild in Discord

Send channel message

Sends a message to a channel in Discord

Update channel message

Updates channel message in Discord

Triggers

Trigger

Description

New channel message

Triggers when a new message is posted in a channel in Discord

New forum message

Triggers when a new message is posted in a forum in Discord

New reaction on message

Triggers on new reaction on a message in Discord