立即开始
Discord Bot Tools

Discordbot Create Auto Moderation Rule

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

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

服务提供商说明

Creates a new auto moderation rule for a Discord guild. Requires MANAGE_GUILD permission. Use this to set up filters for profanity, spam, excessive mentions, or custom keywords.

价格与限制

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

输入

  • namestring
    必填
    The name of the rule (1-100 characters).
  • actionsarray
    必填
    The actions to execute when the rule is triggered (max 5).
  • enabledboolean
    Whether the rule is enabled. Defaults to false.
  • guild_idstring
    必填
    The unique identifier (snowflake ID) of the Discord guild where the rule will be created.
  • event_typeinteger
    必填
    The event type: 1=MESSAGE_SEND, 2=MEMBER_UPDATE.
  • exempt_rolesarray
    Role IDs not affected by the rule (max 20).
  • trigger_typeinteger
    必填
    The trigger type: 1=KEYWORD (max 6/guild), 3=SPAM (max 1/guild), 4=KEYWORD_PRESET (max 1/guild), 5=MENTION_SPAM (max 1/guild), 6=MEMBER_PROFILE (max 1/guild).
  • exempt_channelsarray
    Channel IDs not affected by the rule (max 50).
  • trigger_metadataobject
    Additional metadata associated with the rule's trigger type.

可观察输出

  • 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

使用此操作的技能

相关使用场景

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

官方来源

服务提供商来源