Docs
NodesSocial Nodes
Edit Page on GitHub

List Discord Roles

Retrieve a list of all roles in the server, or search for a specific role by name

actiondiscordbotrolelistfindEasy5
Social

List Discord Roles

5
Flow
Roles Array
Tool
Flow
Not connectedFlow
Role Name

Description

This node connects to Discord and retrieves a list of all roles in the server. You can optionally provide a role name to filter the results and return only roles that match the specified name. The output includes a JSON array of roles and a tool version of the node for use by LLMs.

Common Use Cases

  • Role Management: Use this node to manage roles within a Discord server, such as listing roles for administrative purposes or to assign roles to users based on certain conditions.
  • Integration with LLMs: The tool output can be used by large language models to understand the available roles in a Discord server and make decisions based on that information, such as assigning roles to users or sending targeted messages.
  • Automated Moderation: Combine this node with other Discord nodes to automate moderation tasks, such as checking if a user has a specific role before allowing them to perform certain actions.

Inputs

The input connections this node accepts:

NameDescriptionTypeFlowThe flow of the workflowFlowRole Name(Optional) The name of a specific role to findText

Outputs

The output connections this node provides:

NameDescriptionTypeFlowThe Flow to trigger nextFlowRoles ArrayJSON Array of roles (Filtered if a name was provided)JSONToolThe tool version of this node, to be used by LLMsTool

Fields

The configurable fields this node provides:

NameDescriptionTypeRole Name(Optional) The name of a specific role to findValue: ``TextDiscordConnect DiscordDefaultValue: ``social

Last updated on