Skip to main content
Discord logo

Discord

Lets an agent operate a Discord bot in a server (guild) you control.

What it can do

MethodWhat it does
discord_get_meGet the bot's own profile (user @me).
discord_get_guildGet a server (guild) by id; with_counts optional.
discord_list_guild_channelsList all channels in a server (text, voice, categories, threads).
discord_list_guild_rolesList all roles in a server.
discord_get_channelGet a channel object by channel_id.
discord_list_messagesRead a channel's recent messages (limit, before, after, around).
discord_send_messageSend a message; supports content, embeds, and reply via message_reference.
discord_edit_messageEdit a message previously sent by the bot.
discord_delete_messageDelete a message (requires permission).
discord_bulk_delete_messagesBulk-delete 2-100 messages newer than 14 days.
discord_add_reactionAdd a reaction (emoji unicode or name:id).
discord_remove_own_reactionRemove the bot's own reaction from a message.
discord_create_thread_from_messageCreate a thread from a message in a text channel.
discord_join_threadJoin a thread by thread_id.
discord_leave_threadLeave a thread by thread_id.
discord_list_active_threadsList active threads in a server.
discord_list_public_archived_threadsList public archived threads in a parent channel.
discord_list_guild_membersList server members (paginated by after + limit).
discord_get_guild_memberGet a server member by user_id.
discord_trigger_typingShow the typing indicator in a channel for ~10 seconds.
discord_pin_messagePin a message in a channel.
discord_unpin_messageUnpin a previously pinned message.
discord_list_pinsList pinned messages in a channel.
discord_crosspost_messagePublish a message from an announcement channel.
discord_create_forum_threadCreate a post in a forum channel (initial message in message).
discord_get_messageGet one message by channel_id + message_id.
discord_get_userGet a user profile by Discord snowflake.
discord_create_dmCreate a DM channel with a user; returns channel id for send_message.
discord_create_channel_inviteCreate an invite for a channel.
discord_list_guild_invitesList invites for a server (requires MANAGE_GUILD).
discord_list_channel_webhooksList webhooks attached to a channel.
discord_create_webhookCreate a webhook in a channel.
discord_execute_webhookSend a message via webhook (no bot token required).
discord_list_guild_emojisList custom emojis defined on a server.
discord_add_guild_member_roleGrant a role to a member.
discord_remove_guild_member_roleRemove a role from a member.
discord_modify_guild_memberPatch a member: nickname, roles, mute/deafen, timeout, voice channel.
discord_remove_guild_memberKick a member from a server.
discord_create_guild_channelCreate a new channel on a server.
discord_delete_channelDelete a channel by id.
discord_modify_channelModify a channel (name, topic, slowmode, parent, etc).
discord_list_scheduled_eventsList scheduled events in a server.
discord_get_scheduled_eventGet one scheduled event by id.
discord_create_scheduled_eventCreate a scheduled event (stage, voice, or external with end_time + location).
discord_list_thread_membersList members of a thread.
discord_get_thread_memberGet a thread member by user_id.
discord_list_private_archived_threadsList private archived threads in a channel (requires permission).

How to get credentials

  1. Open the Discord Developer Portal.
  2. New Application → name it → open BotReset Token → copy.
  3. Under Bot, enable intents you plan to use (Message Content, Server Members, etc.).
  4. Under OAuth2 → URL Generator, pick scope bot and the permissions you want, open the URL, and add the bot to your server.
  5. Back in Discord: enable Developer Mode in User Settings → Advanced, right-click your server, Copy Server ID.

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
DISCORD_TOKENDeveloper Portal → Bot → Token
DISCORD_GUILD_IDRight-click server → Copy Server ID

Troubleshooting

  • Missing Access - the bot lacks permission on the target channel. Edit channel permissions or give the bot role the needed flags.
  • Missing Intents - enable the required privileged intent in the Developer Portal and restart.
We love our partners - FlyMy.AI builds with the best. Thanks, Discord!