This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Discord is a communication platform designed for communities. It offers features like text and voice channels, direct messaging, and server-based organization. In Dify, Discord tools allow users to create a random bot with random username and avatar to send messages.
This tool uses Discord Incoming Webhooks and supports the current Discord Execute Webhook API, including plain text messages, embeds, controlled mentions, polls, message components, and thread options.
To receive events from Discord instead of sending messages to Discord, use the Discord trigger plugin under triggers/discord_trigger.
Please follow this site to create a webhook and get its url.
The Discord tools could be found at the Plugin Marketplace, please install it first.
You can use the Discord tool in the following application types.
Both Chatflow and Workflow applications support adding a Discord tool node.
Add the Discord tool in the Agent application, then fill in the discord incoming webhook url to call this tool.
Set:
webhook_url: your Discord webhook URLcontent: Hello from DifyOptional fields:
username: override the webhook usernameavatar_url: override the webhook avatartts: send as text-to-speechSet embeds_json to a JSON array:
[
{
"title": "Build finished",
"description": "The release workflow completed successfully.",
"color": 5763719
}
]
Discord allows up to 10 embeds in one webhook message.
Use allowed_mentions_json to prevent accidental user, role, or everyone mentions:
{
"parse": []
}
To allow only user mentions:
{
"parse": ["users"]
}
Set poll_json to a Discord poll object:
{
"question": {
"text": "Which launch window should we use?"
},
"answers": [
{
"poll_media": {
"text": "Morning"
}
},
{
"poll_media": {
"text": "Afternoon"
}
}
],
"duration": 24,
"allow_multiselect": false
}
Set:
thread_id: the Discord thread IDcontent: the message textThe tool sends thread_id as an Execute Webhook query parameter.
For webhooks in forum or media channels, set:
thread_name: the new thread namecontent, embeds_json, components_json, or poll_jsonapplied_tags_json: optional JSON array of tag IDs, for example ["123456789012345678"]Set wait to true when you need Discord to return the created message object. The tool will return both a success text message and a JSON message with Discord's response.