Compartir por


Discord (Independent Publisher) (Preview)

Discord is a voice, video and text communication service used by over a hundred million people to hang out and talk with their friends and communities.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
     -   US Department of Defense (DoD)
Power Automate Premium All Power Automate regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Power Apps Premium All Power Apps regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Contact
Name Daniel Laskewitz
URL https://youtube.com/daniellaskewitz
Email daniel.laskewitz@microsoft.com
Connector Metadata
Publisher Daniel Laskewitz Microsoft & Michael Guzowski Developico
Website https://discord.com
Privacy policy https://discord.com/privacy
Categories Lifestyle and Entertainment;Social Media

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds

Actions

Execute Webhook

This request executes a webhook by using a webhook id and token.

Get Current User

Returns the user object of the requestors account.

Get Current User Guilds

Returns a list of partial guild objects the current user is a member of.

Get User Connections

Returns a list of connection objects.

Execute Webhook

This request executes a webhook by using a webhook id and token.

Parameters

Name Key Required Type Description
Webhook ID
webhook.id True string

The ID of the webhook.

Webhook Token
webhook.token True string

The token of the webhook.

Content-Type
content-type string

The content type of the request.

Content
content string

The message contents (up to 2000 characters).

Username
username string

Override the default username of the webhook.

Avatar URL
avatar-url string

Override the default avatar of the webhook.

Returns

Body
Webhook

Get Current User

Returns the user object of the requestors account.

Returns

Body
User

Get Current User Guilds

Returns a list of partial guild objects the current user is a member of.

Returns

response
array of Guild

Get User Connections

Returns a list of connection objects.

Returns

Definitions

Channel

Connection

Name Path Type Description
type
type string

type

id
id string

id

name
name string

name

visibility
visibility integer

visibility

friend_sync
friend_sync boolean

friend_sync

show_activity
show_activity boolean

show_activity

verified
verified boolean

verified

Guild

Name Path Type Description
id
id string

id

name
name string

name

icon
icon string

icon

owner
owner boolean

owner

permissions
permissions string

permissions

features
features array of string

features

User

Name Path Type Description
ID
id string

The user's id.

Username
username string

The user's username, not unique across the platform.

Discriminator
discriminator string

The user's 4-digit discord-tag.

Avatar
avatar string

The user's avatar hash.

Bot
bot boolean

Whether the user belongs to an OAuth2 application.

System
system boolean

Whether the user is an Official Discord System user (part of the urgent message system).

MFA Enabled
mfa_enabled boolean

Whether the user has two factor enabled on their account.

Locale
locale string

The user's chosen language option.

Verified
verified boolean

Whether the email on this account has been verified.

Email
email string

The user's email.

Flags
flags integer

The flags on a user's account.

Premium Type
premium_type integer

The type of Nitro subscription on a user's account.

Public Flags
public_flags integer

The public flags on a user's account.

Webhook

Name Path Type Description
ID
id string

The id of the webhook.

Type
type integer

The type of webhook.

Guild ID
guild_id string

The guild id this webhook is for, if any.

Channel ID
channel_id string

The channel id this webhook is for, if any.

user
user User
Name
name string

The default name of the webhook.

Avatar
avatar string

The default user avatar hash of the webhook.

Token
token string

The secure token of the webhook (returned for Incoming Webhooks).

Application ID
application_id string

The bot/OAuth2 application that created this webhook.

source_guild
source_guild Guild
source_channel
source_channel Channel