New docs? Check out the change log to learn more!
curl --request POST \
--url https://discord.com/api/v10/guilds/{guild_id}/auto-moderation/rules \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"event_type": 123,
"trigger_type": 4,
"trigger_metadata": {
"allow_list": [
"<string>"
],
"presets": [
123
]
},
"actions": [
{
"type": 1,
"metadata": "<unknown>"
}
],
"enabled": true,
"exempt_roles": [
"<string>"
],
"exempt_channels": [
"<string>"
]
}
'{
"id": "<string>",
"guild_id": "<string>",
"creator_id": "<string>",
"name": "<string>",
"event_type": 123,
"actions": [
{
"type": 1,
"metadata": {
"custom_message": "<string>"
}
}
],
"trigger_type": 4,
"enabled": true,
"exempt_roles": [
"<string>"
],
"exempt_channels": [
"<string>"
],
"trigger_metadata": {
"allow_list": [
"<string>"
],
"presets": [
123
]
}
}curl --request POST \
--url https://discord.com/api/v10/guilds/{guild_id}/auto-moderation/rules \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"event_type": 123,
"trigger_type": 4,
"trigger_metadata": {
"allow_list": [
"<string>"
],
"presets": [
123
]
},
"actions": [
{
"type": 1,
"metadata": "<unknown>"
}
],
"enabled": true,
"exempt_roles": [
"<string>"
],
"exempt_channels": [
"<string>"
]
}
'{
"id": "<string>",
"guild_id": "<string>",
"creator_id": "<string>",
"name": "<string>",
"event_type": 123,
"actions": [
{
"type": 1,
"metadata": {
"custom_message": "<string>"
}
}
],
"trigger_type": 4,
"enabled": true,
"exempt_roles": [
"<string>"
],
"exempt_channels": [
"<string>"
],
"trigger_metadata": {
"allow_list": [
"<string>"
],
"presets": [
123
]
}
}Discord bot token
100A user submitted a message to a channel
Check if content contains words from internal pre-defined wordsets
4 Show child attributes
1 - 5 elementsShow child attributes
2050200 response for create_auto_moderation_rule
A user submitted a message to a channel
Show child attributes
Check if content contains words from internal pre-defined wordsets
4 Show child attributes