立即开始
Discord Bot Tools

Discordbot Create Guild Role

通过 Aident Loadout 使用 Discord Bot Tools 的 Discordbot Create Guild Role。执行前查看输入、输出、设置、价格和风险。

写入操作风险等级 2/5OAuth 连接

服务提供商说明

Creates a new role in a Discord guild with customizable name, permissions, color, hoist, mentionability, and icon. Requires MANAGE_ROLES permission. The icon and unicode_emoji fields are mutually exclusive.

价格与限制

价格
免费操作
统一支付
暂不支持

输入

  • iconstring
    Hash of a custom image for the role's icon. Mutually exclusive with unicode_emoji.
  • namestring
    Name for the new role. If omitted, Discord defaults to 'new role'.
  • colorinteger
    RGB color value for the role as an integer (e.g., red is 16711680). Defaults to 0 (no color).
  • hoistboolean
    If true, displays the role separately in the member list. Defaults to false.
  • guild_idstring
    必填
    The unique identifier (snowflake ID) of the Discord guild where the role will be created.
  • mentionableboolean
    If true, this role can be mentioned by others. Defaults to false.
  • permissionsstring
    Bitwise integer for role permissions combined from Discord permission flags.
  • unicode_emojistring
    Standard Unicode emoji for the role's icon. Mutually exclusive with icon.

可观察输出

  • data
    必填
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    必填
    Whether or not the action execution was successful or not

使用此操作的技能

相关使用场景

尚未关联经过验证的相关使用场景。

官方来源

服务提供商来源