Send a message to a Discord channel.Sends a text message to the specified Discord channel. The message can optionally be read aloud (text-to-speech) or include rich embeds.
Get channels in a Discord server.Retrieves the list of channels in the specified Discord server.
Create a channel in a Discord server.Creates a channel in the specified Discord server. Choose text, voice, category, announcement, stage, forum or media.
Count recent messages in a Discord channel.Counts how many messages were sent in a specific channel over the past number of days you choose.
Count recent messages in a Discord server.Counts how many messages were sent across a Discord server over the past number of days you choose.
List my Discord server IDs.Returns a list of IDs for the Discord servers you or your bot belong to.
List messages in a channelRead the most recent messages in a Discord channel, newest first.
Get a messageRetrieve a single Discord message by its ID.
Reply to a messageReply to a Discord message so it threads under the original.
Edit a messageChange the text of a message. Discord only allows an app to edit messages it sent itself.
Delete a messagePermanently delete a single Discord message.
Bulk delete messagesDelete between 2 and 100 messages in one call. Discord cannot bulk delete messages older than 14 days and rejects the whole request if any are included.
Search messages in a serverSearch a Discord server's message history by text, channel, author or attachment. Requires the Message Content intent to be enabled on your bot.
Send a direct messageOpen a DM with a Discord user and send them a message. Discord advises against using this to message a whole server.
Publish an announcementPublish a message in an announcement channel to every server that follows it.
Show the bot typingShow the typing indicator in a channel for about ten seconds, so a slow step looks like work in progress.
React to a messageAdd an emoji reaction to a message. Use a standard emoji such as 👍, or name:id for a custom server emoji.
Remove a reactionRemove a reaction from a message. Leave the user blank to remove the bot's own reaction.
List who reactedList the users who reacted to a message with a given emoji.
Clear reactionsRemove every reaction from a message, or every reaction of one emoji if an emoji is given.
List pinned messagesList the pinned messages in a channel, most recently pinned first.
Pin a messagePin a message to the top of its channel.
Unpin a messageRemove a message from a channel's pins.
Get a channelRetrieve a channel's settings: name, topic, category, slow mode and type.
Update a channelRename a channel or change its topic, slow mode, category or position. Only the fields you provide are changed.
Delete a channelPermanently delete a channel. Deleting a category does not delete the channels inside it; they simply lose their category.
Set channel permissionsAllow or deny permissions for a role or member on one channel. Permission values are Discord's bitfields, given as decimal strings.
Create an inviteCreate an invite link to a channel. A max age or max uses of 0 means the invite never expires.
List channel invitesList the active invites for a channel, with how many times each has been used.
Follow an announcement channelMirror an announcement channel's posts into another channel, so published updates appear there automatically.
Start a thread on a messageStart a thread hanging off an existing message, so replies stay together without cluttering the channel.
Start a threadStart a thread in a channel without attaching it to an existing message.
Create a forum postCreate a post in a forum or media channel. A forum post is a thread that must be created together with its first message.
List active threadsList every thread in a server that has not been archived, including forum posts.
Archive or reopen a threadArchive a thread, reopen an archived one, or lock it so only moderators can post.
Add someone to a threadAdd a member to a thread so they receive its messages.
Remove someone from a threadRemove a member from a thread.
List server membersList the members of a server. This needs the Server Members intent enabled on your bot in Discord's Developer Portal; without it Discord refuses the request. Search members works without any intent.
Search membersFind members whose username or nickname starts with your search term. Unlike listing members this needs no privileged intent, so it is the reliable way to resolve a name to a user ID.
Get a memberRetrieve one member's profile in a server, including their roles, nickname and join date.
Set a member's nicknameChange a member's nickname in a server. Leave the nickname blank to clear it and fall back to their username.
Give a member a roleAdd a role to a member. A bot can only manage roles below its own highest role, so a permission error here usually means the role sits above the bot's.
Take a role from a memberRemove a role from a member. A bot can only manage roles below its own highest role.
Time out a memberTemporarily stop a member from sending messages or joining voice. Discord caps a timeout at 28 days, and refuses it for administrators and the server owner. Set the duration to 0 to lift an existing timeout.
Remove a memberRemove someone from a server. They can rejoin with a new invite; use a ban to stop them returning.
Ban a memberBan a user from a server and optionally delete their recent messages. They cannot rejoin until the ban is lifted.
Lift a banRemove a ban so the user can rejoin the server with a new invite.
List bansList the users banned from a server, with the reason recorded for each.
List rolesList a server's roles, with their colour, position and permissions.
Create a roleCreate a role. Colour is a decimal RGB value, so red (0xFF0000) is 16711680.
Update a roleChange a role's name, colour, permissions or display settings. Only the fields you provide are changed.
Delete a roleDelete a role, removing it from everyone who had it.
Get server detailsRetrieve a server's profile, including approximate member and online counts.
List the bot's serversList the servers the connected bot belongs to, with their names. A workflow can only act in servers the bot has been invited to.
Read the audit logRead a server's audit log: who changed what, and why. Discord keeps entries for 45 days. Filter by action type to watch one kind of change: 20 is a kick, 22 a ban, 25 a member's roles changing.
List server invitesList every active invite across a server, with how many times each has been used.
Create a webhookCreate a webhook on a channel. A webhook can post under any name and avatar, unlike the bot itself. Discord rejects names containing 'clyde' or 'discord'.
List webhooksList the webhooks on a channel.
Post through a webhookPost a message through a webhook, optionally under a custom name and avatar. This is the only way to post under an identity other than the bot's.
Delete a webhookPermanently delete a webhook. Anything still posting to its URL will start failing.
List scheduled eventsList a server's scheduled events, with how many people have said they are interested.
Schedule an eventSchedule an event in a voice or stage channel, or at an external location. Discord requires an end time for events at a location.
Cancel a scheduled eventCancel a scheduled event and remove it from the server.
List custom emojiList a server's custom emoji. Each result includes the name:id form the reaction actions expect.
List Auto Moderation rulesList a server's Auto Moderation rules and whether each is switched on.
Delete an Auto Moderation ruleDelete an Auto Moderation rule, so it stops filtering messages.