New docs? Check out the change log to learn more!
curl --request GET \
--url https://discord.com/api/v10/guilds/{guild_id}/auto-moderation/rules \
--header 'Authorization: <api-key>'[
{
"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 GET \
--url https://discord.com/api/v10/guilds/{guild_id}/auto-moderation/rules \
--header 'Authorization: <api-key>'[
{
"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
200 response for list_auto_moderation_rules
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