AACFlow

Discord

Interact with Discord

Usage Instructions

Comprehensive Discord integration: messages, threads, channels, roles, members, invites, and webhooks.

Tools

discord_send_message

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
contentstringNoNo description
serverIdstringYesNo description
filesfile[]NoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
filesfile[]Files attached to the message
dataobjectDiscord message data
idstringMessage ID
contentstringMessage content
channel_idstringChannel ID where message was sent
authorobjectMessage author information
idstringAuthor user ID
usernamestringAuthor username
avatarstringAuthor avatar hash
botbooleanWhether author is a bot
timestampstringMessage timestamp
edited_timestampstringMessage edited timestamp
embedsarrayMessage embeds
attachmentsarrayMessage attachments
mentionsarrayUser mentions in message
mention_rolesarrayRole mentions in message
mention_everyonebooleanWhether message mentions everyone

discord_get_messages

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
limitnumberNoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectContainer for messages data
messagesarrayArray of Discord messages with full metadata
idstringMessage ID
contentstringMessage content
channel_idstringChannel ID
authorobjectMessage author information
idstringAuthor user ID
usernamestringAuthor username
avatarstringAuthor avatar hash
botbooleanWhether author is a bot
timestampstringMessage timestamp
edited_timestampstringMessage edited timestamp
embedsarrayMessage embeds
attachmentsarrayMessage attachments
mentionsarrayUser mentions in message
mention_rolesarrayRole mentions in message
mention_everyonebooleanWhether message mentions everyone
channel_idstringChannel ID

discord_get_server

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectDiscord server (guild) information
idstringServer ID
namestringServer name
iconstringServer icon hash
descriptionstringServer description
owner_idstringServer owner user ID
rolesarrayServer roles
channelsarrayServer channels
member_countnumberNumber of members in server

discord_get_user

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
userIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectDiscord user information
idstringUser ID
usernamestringUsername
discriminatorstringUser discriminator (4-digit number)
avatarstringUser avatar hash
botbooleanWhether user is a bot
systembooleanWhether user is a system user
emailstringUser email (if available)
verifiedbooleanWhether user email is verified

discord_edit_message

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
messageIdstringYesNo description
contentstringNoNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated Discord message data
idstringMessage ID
contentstringUpdated message content
channel_idstringChannel ID
edited_timestampstringMessage edited timestamp

discord_delete_message

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
messageIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_add_reaction

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
messageIdstringYesNo description
emojistringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_remove_reaction

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
messageIdstringYesNo description
emojistringYesNo description
userIdstringNoThe user ID whose reaction to remove (omit to remove bot's own reaction), e.g., 123456789012345678
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_pin_message

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
messageIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_unpin_message

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
messageIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_create_thread

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
namestringYesNo description
messageIdstringNoThe message ID to create a thread from (if creating from existing message), e.g., 123456789012345678
autoArchiveDurationnumberNoNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated thread data
idstringThread ID
namestringThread name
typenumberThread channel type
guild_idstringServer ID
parent_idstringParent channel ID

discord_create_component

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
messagestringStatus message
filesfile[]Files attached to the message
datajsonResponse data

discord_join_thread

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
threadIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_leave_thread

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
threadIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_archive_thread

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
threadIdstringYesNo description
archivedbooleanYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated thread data
idstringThread ID
archivedbooleanWhether thread is archived

discord_create_channel

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
namestringYesNo description
typenumberNoNo description
topicstringNoNo description
parentIdstringNoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated channel data
idstringChannel ID
namestringChannel name
typenumberChannel type
guild_idstringServer ID

discord_update_channel

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
namestringNoNo description
topicstringNoNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated channel data
idstringChannel ID
namestringChannel name
typenumberChannel type
topicstringChannel topic

discord_delete_channel

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_get_channel

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectChannel data
idstringChannel ID
namestringChannel name
typenumberChannel type
topicstringChannel topic
guild_idstringServer ID

discord_create_role

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
namestringYesNo description
colornumberNoNo description
hoistbooleanNoNo description
mentionablebooleanNoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated role data
idstringRole ID
namestringRole name
colornumberRole color
hoistbooleanWhether role is hoisted
mentionablebooleanWhether role is mentionable

discord_update_role

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
roleIdstringYesNo description
namestringNoNo description
colornumberNoNo description
hoistbooleanNoNo description
mentionablebooleanNoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated role data
idstringRole ID
namestringRole name
colornumberRole color

discord_delete_role

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
roleIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_assign_role

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
userIdstringYesNo description
roleIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_remove_role

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
userIdstringYesNo description
roleIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_kick_member

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
userIdstringYesNo description
reasonstringNoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_ban_member

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
userIdstringYesNo description
reasonstringNoNo description
deleteMessageDaysnumberNoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_unban_member

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
userIdstringYesNo description
reasonstringNoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_get_member

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
userIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectMember data
userobjectUser information
idstringUser ID
usernamestringUsername
avatarstringAvatar hash
nickstringServer nickname
rolesarrayArray of role IDs
joined_atstringWhen the member joined

discord_update_member

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
userIdstringYesNo description
nickstringNoNo description
mutebooleanNoNo description
deafbooleanNoNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated member data
nickstringServer nickname
mutebooleanVoice mute status
deafbooleanVoice deaf status

discord_create_invite

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
maxAgenumberNoNo description
maxUsesnumberNoNo description
temporarybooleanNoNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated invite data
codestringInvite code
urlstringFull invite URL
max_agenumberMax age in seconds
max_usesnumberMax uses
temporarybooleanWhether temporary

discord_get_invite

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
inviteCodestringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectInvite data
codestringInvite code
guildobjectServer information
channelobjectChannel information
approximate_member_countnumberApproximate member count
approximate_presence_countnumberApproximate online count

discord_delete_invite

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
inviteCodestringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_create_webhook

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
channelIdstringYesNo description
namestringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated webhook data
idstringWebhook ID
namestringWebhook name
tokenstringWebhook token
urlstringWebhook URL
channel_idstringChannel ID

discord_create_slash_command

Create a global slash command for a Discord application

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
appIdstringYesDiscord application (client) ID
namestringYesCommand name (lowercase, no spaces)
descriptionstringYesCommand description
optionsstringNoJSON array of command options (e.g. [{"name":"user","description":"Target user","type":6,"required":true}])
typestringNoCommand type: 1=CHAT_INPUT (default), 2=USER, 3=MESSAGE

Output

ParameterTypeDescription
commandobjectCreated slash command object
idstringCommand ID
namestringCommand name
descriptionstringCommand description
typenumberCommand type
application_idstringApplication ID
commandIdstringThe created command ID

discord_get_slash_commands

Get all global slash commands for a Discord application

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
appIdstringYesDiscord application (client) ID

Output

ParameterTypeDescription
commandsarrayArray of slash command objects
idstringCommand ID
namestringCommand name
descriptionstringCommand description
typenumberCommand type

discord_delete_slash_command

Delete a global slash command from a Discord application

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description
appIdstringYesDiscord application (client) ID
commandIdstringYesID of the slash command to delete

Output

ParameterTypeDescription
successbooleanDeletion success status

discord_get_voice_channels

Get all voice channels from a Discord server (guild)

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
channelsarrayArray of voice channel objects
idstringChannel ID
namestringChannel name
typenumberChannel type (2=voice)
bitratenumberVoice bitrate
user_limitnumberUser limit
positionnumberChannel position
parent_idstringParent category ID

discord_execute_webhook

Input

ParameterTypeRequiredDescription
webhookIdstringYesNo description
webhookTokenstringYesNo description
contentstringYesNo description
usernamestringNoNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectMessage sent via webhook
idstringMessage ID
contentstringMessage content
channel_idstringChannel ID
timestampstringMessage timestamp

discord_get_webhook

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
webhookIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectWebhook data
idstringWebhook ID
namestringWebhook name
channel_idstringChannel ID
guild_idstringServer ID
tokenstringWebhook token

discord_delete_webhook

Input

ParameterTypeRequiredDescription
botTokenstringYesNo description
webhookIdstringYesNo description
serverIdstringYesNo description

Output

ParameterTypeDescription
messagestringSuccess or error message

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started