Skip to main content
Discord
Discord
81 actions · 2 auth methods
PreviewMessaging

Authentication

OAuth 2.0

Best for user-facing apps that need to act on behalf of Discord users. Supports granular scope selection.Guides: Connector Profile, Link Account

Bot Token

Best for automated bots and integrations. Acts as the bot user within guilds it has been added to.Guides: Connector Profile, Link Account
Actions
|
81 actions
Action
Description
Required scopes
Get Current User
Returns the user object of the requester’s account
Get User
Returns a user object for a given user ID
Modify Current User
Modify the requester’s user account settings
List Current User Guilds
Returns a list of partial guild objects the current user is a member of
Get Current User Guild Member
Returns a guild member object for the current user
Leave Guild
Leave a guild
Create DM
Create a new DM channel with a user
List Current User Connections
Returns a list of connection objects
Get Current User Application Role Connection
Returns the application role connection for the user. Requires OAuth2 — does not work with bot token.
Update Current User Application Role Connection
Updates and returns the application role connection for the user. Requires OAuth2 — does not work with bot token.
Get Current Application
Returns the application object associated with the requesting bot user
Get Application Role Connection Metadata Records
Returns a list of application role connection metadata objects for the given application
Get Guild
Returns the guild object for the given id
Get Guild Preview
Returns the guild preview object for the given id
Modify Guild
Modify a guild’s settings
List Guild Channels
Returns a list of guild channel objects
Create Guild Channel
Create a new channel object for the guild
List Guild Members
Returns a list of guild member objects that are members of the guild
Search Guild Members
Returns a list of guild member objects whose username or nickname starts with a provided string
Get Guild Member
Returns a guild member object for the specified user
Add Guild Member
Adds a user to the guild using an OAuth2 access token. Requires OAuth2 — does not work with bot token alone.
Remove Guild Member
Remove a member from a guild (kick)
List Guild Bans
Returns a list of ban objects for the users banned from this guild
Create Guild Ban
Create a guild ban and optionally delete previous messages
List Guild Roles
Returns a list of role objects for the guild
Delete Guild Role
Delete a guild role
Add Guild Member Role
Adds a role to a guild member
Remove Guild Member Role
Removes a role from a guild member
List Guild Invites
Returns a list of invite objects for the guild
List Active Guild Threads
Returns all active threads in the guild
Modify Current Member
Modifies the current member in a guild
Get Guild Role
Returns a role object for the specified role
Get Guild Role Member Counts
Returns a map of role IDs to member counts
Bulk Update Guild Role Positions
Modify the positions of a set of role objects for the guild
List Guild Integrations
Returns a list of integration objects for the guild
Get Guild Onboarding
Returns the Onboarding object for the guild
Get Channel
Get a channel by ID
Modify Channel
Update a channel’s settings
Delete Channel
Delete a channel or close a private message
List Reactions
Get a list of users that reacted with this emoji
List Channel Invites
Returns a list of invite objects for the channel
Create Channel Invite
Create a new invite object for the channel
Start Thread From Message
Creates a new thread from an existing message
Start Thread Without Message
Creates a new thread that is not connected to an existing message
Join Thread
Adds the current user to a thread
Leave Thread
Removes the current user from a thread
Remove Thread Member
Removes another member from a thread
Get Thread Member
Returns a thread member object for the specified user if they are a member of the thread
List Thread Members
Returns array of thread members objects that are members of the thread
Edit Channel Permissions
Edit the channel permission overwrites for a user or role
Delete Channel Permission
Delete a channel permission overwrite for a user or role
Follow Announcement Channel
Follow an announcement channel to send messages to a target channel
Get Guild Audit Log
Returns an audit log object for the guild
List Auto Moderation Rules For Guild
Get a list of all rules currently configured for the guild
Get Auto Moderation Rule
Get a single auto moderation rule
Delete Auto Moderation Rule
Delete an auto moderation rule
List Guild Emojis
Get a list of emojis for the guild
Get Guild Emoji
Get a specific emoji from the guild
Create Guild Emoji
Create a new emoji for the guild
Modify Guild Emoji
Modify an existing guild emoji
Delete Guild Emoji
Delete a guild emoji
List Application Emojis
Get a list of emojis for the application
Get Application Emoji
Get a specific emoji from the application
Create Application Emoji
Create a new emoji for the application
Modify Application Emoji
Modify an existing application emoji
Delete Application Emoji
Delete an application emoji
List Guild Scheduled Events
Get all scheduled events for a guild
Get Guild Scheduled Event
Get a specific scheduled event
Delete Guild Scheduled Event
Delete a scheduled event
List Guild Scheduled Event Users
Get users subscribed to a scheduled event
Get Invite
Get an invite by code
Get Channel Messages
Get messages from a channel
Create Message
Send a message to a channel
Edit Message
Edit a previously sent message
Get Channel Message
Get a specific message in a channel
Create Reaction
Create a reaction for a message
Delete Own Reaction
Delete a reaction the current user made
Delete User Reaction
Delete another user’s reaction
Delete All Reactions
Delete all reactions on a message
Delete All Reactions For Emoji
Delete all reactions for a specific emoji
Bulk Delete Messages
Delete multiple messages in a single request

Getting Started

1

Create or Select a Project

Set up a new project or select an existing one. See the Projects Guide.
2

Configure the Connector

Enable the connector and set up a connector profile in your project. See Managing Connectors.
https://stackone-logos.com/api/discord/filled/png

Connector Profile

Discord - OAuth 2.0
https://stackone-logos.com/api/discord/filled/png

Connector Profile

Discord - Bot Token
3

Link an Account

Connect an account using StackOne Hub or Auth Link.
https://stackone-logos.com/api/discord/filled/png

Link Account

Discord - OAuth 2.0
https://stackone-logos.com/api/discord/filled/png

Link Account

Discord - Bot Token
4

Use Actions

Invoke actions using one of the methods below: