Saltar al contenido principal

Discord Toolkit

The Discord toolkit lets agents send messages (bot or webhook), list guilds, channels, members, and roles, create or rename channels, manage roles, and moderate members (kick, ban, unban). Authentication uses a Discord bot token saved as a connection (not OAuth).

Add it on the agent Toolkits tab and create or select a Discord connection with your bot token.

Prerequisites​

  • A Discord application and bot from the Discord Developer Portal
  • The bot invited to the target server(s) with the permissions the agent needs
  • Server Members Intent enabled if you need member listing
  • An agent you can edit

Setup​

  1. Create a Discord application → Bot → copy the bot token.
  2. Invite the bot to your server with the required permissions (and enable privileged intents if needed).
  3. Open the agent → Toolkits → add Discord.
  4. Create a connection and paste the bot token.
  5. Save the agent. @-mention Discord tools in the personality prompt for server tasks.

Available tools​

Messaging​

ToolDescription
Send Message (Webhook)Sends a message via webhook URL (does not require the bot token for this call).
Send Channel MessageSends a message to a channel as the bot.

Guilds, channels & members​

ToolDescription
List GuildsLists guilds (servers) the bot is in.
List Guild ChannelsLists channels in a guild.
Find ChannelFinds a channel by name or criteria.
Create ChannelCreates a channel.
Rename ChannelRenames a channel.
Delete ChannelDeletes a channel.
List Guild MembersLists members (requires Server Members Intent).
List Guild RolesLists roles in a guild.

Roles & moderation​

ToolDescription
Create Guild RoleCreates a role.
Delete Guild RoleDeletes a role.
Add Role to MemberAssigns a role to a member.
Remove Role from MemberRemoves a role from a member.
Remove Member from GuildKicks a member.
Ban Guild MemberBans a member.
Remove Ban from UserRemoves a ban.

Use cases​

  • Post release or incident notices to a channel
  • Create a temporary channel for a project and rename it later
  • Assign or remove roles during onboarding
  • Moderate spam with kick/ban tools when policy allows

Tips​

  • Role tools need Manage Roles and the bot's role must sit above roles it manages.
  • Prefer webhook send for simple announcements when you already have a webhook URL.
  • Store the bot token in a saved connection — do not put it in the personality prompt.
  • Access is limited to servers and channels the bot can see.

Troubleshooting​

SymptomWhat to check
Unauthorized / invalid tokenRegenerate the bot token and update the connection
Empty member listEnable Server Members Intent and re-invite if needed
Cannot manage rolesBot role hierarchy and Manage Roles permission
Cannot send to channelBot can view/send in that channel; confirm channel ID