Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a98d189
add message type and embed type for AutoMod alerts
Mateo-tem May 1, 2022
d478d4e
apply suggestions
Mateo-tem May 1, 2022
36345c1
change description of auto_moderation_message
Mateo-tem May 2, 2022
f05999a
add audit log events: create, update and delete
Mateo-tem May 2, 2022
f3bd106
add audit log events: block message
Mateo-tem May 6, 2022
af5d7ef
Merge branch 'main' into auto-moderation
Mateo-tem May 13, 2022
ca5d4f3
add automod rule object
Mateo-tem May 13, 2022
836ba22
add missing word
Mateo-tem May 14, 2022
a3c916a
remove repeated/implied words
Mateo-tem May 16, 2022
5de67fd
move auto moderation to separate resource and add gateway events
hemu May 19, 2022
aacb8ca
fix rule obj link in audit log
hemu May 19, 2022
60e688c
add permission requirements
hemu May 19, 2022
7d33891
fix AUTO_MODERATION guild feature description
Mateo-tem May 19, 2022
edfafc6
add missing word on Auto Moderation Gateway Events
Mateo-tem May 19, 2022
0cb7bcb
add table formatting
Mateo-tem May 19, 2022
fa25ce3
Audit Log Events: use Auto Moderation instead of AutoMod
Mateo-tem May 19, 2022
9504ac3
Add param constraints
hemu May 19, 2022
92bf590
add api routes
hemu May 19, 2022
eaa3ee9
add id field in rule object and table formatting
Mateo-tem May 19, 2022
fa83ac1
fix links of permission requirements
Mateo-tem May 19, 2022
51265eb
fix little error in example of rule
Mateo-tem May 19, 2022
3c9ff2a
add new audit log field, change action execution gw event, add additi…
hemu May 19, 2022
2f8d62f
add guild_id and creator_id in example rule obj
Mateo-tem May 20, 2022
1f7fdfd
add POST and PATCH params
hemu May 20, 2022
cf1cea2
fix typo in List Auto Moderation Rules for Guild
Mateo-tem May 21, 2022
43c8ef3
fix guild_id description in rule obj
Mateo-tem May 23, 2022
887e039
fix descriptions in fields of rule obj
Mateo-tem May 23, 2022
09755dd
Add additional action execution gateway event fields
hemu May 25, 2022
88b95ce
Add metadata structures, some renaming
hemu May 25, 2022
04a8285
add timeout action type
Mateo-tem Jun 6, 2022
da8f977
add timeout action metadata
Mateo-tem Jun 6, 2022
3156017
fix table formatting and some stuff related to timeout action
Mateo-tem Jun 7, 2022
16cf44c
change keyword_lists field to new presets field
hemu Jun 8, 2022
824e690
remove embed type since no guarantee for official support in future
hemu Jun 8, 2022
4fdc9eb
add user_id to auto_moderation_action_execution gateway event
hemu Jun 8, 2022
351cba3
remove metadata warning and fix copied description
hemu Jun 8, 2022
a52787f
Update docs/resources/Auto_Moderation.md
hemu Jun 8, 2022
2d5226a
consistent array type field def for endpoints
hemu Jun 8, 2022
02df621
Add clarity around optional fields
hemu Jun 8, 2022
8596036
add timeout permission requirement
hemu Jun 14, 2022
d54e94d
add change log and further permission clarification
hemu Jun 14, 2022
0f77209
add property details and links to the relevant docs
Mateo-tem Jun 15, 2022
a04eb7a
clarify action execution vs rule triggered
hemu Jun 15, 2022
3cc16e6
Update docs/Change_Log.md
shaydewael Jun 15, 2022
56887ca
remove nullable fields and fix trigger metadata link
hemu Jun 16, 2022
4f20205
fix description of MESSAGE_SEND event type
Mateo-tem Jun 16, 2022
21dc820
fix some inconsistencies
Mateo-tem Jun 16, 2022
ad77c4e
Add keyword matching strategies
hemu Jun 16, 2022
122804d
move timeout action keyword rule restriction to actions section
hemu Jun 16, 2022
dbeeeea
Update docs/Change_Log.md
hemu Jun 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/Change_Log.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## Auto Moderation

#### Jun 16, 2022

Add new [Auto Moderation feature](#DOCS_RESOURCES_AUTO_MODERATION) which enables guilds to moderate message content based on keywords, harmful links, and unwanted spam. This change includes:
- New endpoints for [creating](#DOCS_RESOURCES_AUTO_MODERATION/create-auto-moderation-rule), [updating](#DOCS_RESOURCES_AUTO_MODERATION/modify-auto-moderation-rule), and [deleting](#DOCS_RESOURCES_AUTO_MODERATION/delete-auto-moderation-rule) Auto Moderation rules
- New gateway events emitted when Auto Moderation rules are [created](#DOCS_TOPICS_GATEWAY/auto-moderation-rule-create) (`AUTO_MODERATION_RULE_CREATE`), [updated](#DOCS_TOPICS_GATEWAY/auto-moderation-rule-update) (`AUTO_MODERATION_RULE_UPDATE `), and [deleted](#DOCS_TOPICS_GATEWAY/auto-moderation-rule-delete) (`AUTO_MODERATION_RULE_DELETE `). Requires the `AUTO_MODERATION_CONFIGURATION` (`1 << 20`) intent
- New gateway event emitted when an [action is executed](#DOCS_TOPICS_GATEWAY/auto-moderation-action-execution) (`AUTO_MODERATION_ACTION_EXECUTION`). Requires the `AUTO_MODERATION_EXECUTION` (`1 << 21`) intent
- New [audit log entries](#DOCS_RESOURCES_AUDIT_LOG/audit-log-entry-object-audit-log-events) when rules are created (`AUTO_MODERATION_RULE_CREATE`), updated (`AUTO_MODERATION_RULE_UPDATE`), or deleted (`AUTO_MODERATION_RULE_DELETE`), or when AutoMod performs an action (`AUTO_MODERATION_BLOCK_MESSAGE`)

## Updated Command Permissions

#### Apr 27, 2022
Expand Down
13 changes: 9 additions & 4 deletions docs/resources/Audit_Log.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ When an app is performing an eligible action using the APIs, it can pass an `X-A
| Field | Type | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------- |
| audit_log_entries | array of [audit log entry](#DOCS_RESOURCES_AUDIT_LOG/audit-log-entry-object) objects | List of audit log entries, sorted from most to least recent |
| guild_scheduled_events | array of [guild scheduled event](#DOCS_RESOURCES_GUILD_SCHEDULED_EVENT/guild-scheduled-event-object) objects | List of guild scheduled events found in the audit log |
| auto_moderation_rules | array of [auto moderation rule](#DOCS_RESOURCES_AUTO_MODERATION/auto-moderation-rule-object) objects | List of auto moderation rules referenced in the audit log |
| guild_scheduled_events | array of [guild scheduled event](#DOCS_RESOURCES_GUILD_SCHEDULED_EVENT/guild-scheduled-event-object) objects | List of guild scheduled events referenced in the audit log |
| integrations | array of partial [integration](#DOCS_RESOURCES_GUILD/integration-object) objects | List of partial integration objects |
| threads | array of thread-specific [channel](#DOCS_RESOURCES_CHANNEL/channel-object) objects | List of threads found in the audit log\* |
| users | array of [user](#DOCS_RESOURCES_USER/user-object) objects | List of users found in the audit log |
| webhooks | array of [webhook](#DOCS_RESOURCES_WEBHOOK/webhook-object) objects | List of webhooks found in the audit log |
| threads | array of thread-specific [channel](#DOCS_RESOURCES_CHANNEL/channel-object) objects | List of threads referenced in the audit log\* |
| users | array of [user](#DOCS_RESOURCES_USER/user-object) objects | List of users referenced in the audit log |
| webhooks | array of [webhook](#DOCS_RESOURCES_WEBHOOK/webhook-object) objects | List of webhooks referenced in the audit log |

\* Threads referenced in `THREAD_CREATE` and `THREAD_UPDATE` events are included in the threads map since archived threads might not be kept in memory by clients.

Expand Down Expand Up @@ -120,6 +121,10 @@ If no object is noted, there won't be a `changes` array in the entry, though oth
| THREAD_UPDATE | 111 | Thread was updated | [Thread](#DOCS_RESOURCES_CHANNEL/thread-metadata-object) |
| THREAD_DELETE | 112 | Thread was deleted | [Thread](#DOCS_RESOURCES_CHANNEL/thread-metadata-object) |
| APPLICATION_COMMAND_PERMISSION_UPDATE | 121 | Permissions were updated for a command | [Command Permission](#DOCS_INTERACTIONS_APPLICATION_COMMANDS/application-command-permissions-object-application-command-permissions-structure)\* |
| AUTO_MODERATION_RULE_CREATE | 140 | Auto Moderation rule was created | [Auto Moderation Rule](#DOCS_RESOURCES_AUTO_MODERATION/auto-moderation-rule-object) |
| AUTO_MODERATION_RULE_UPDATE | 141 | Auto Moderation rule was updated | [Auto Moderation Rule](#DOCS_RESOURCES_AUTO_MODERATION/auto-moderation-rule-object) |
| AUTO_MODERATION_RULE_DELETE | 142 | Auto Moderation rule was deleted | [Auto Moderation Rule](#DOCS_RESOURCES_AUTO_MODERATION/auto-moderation-rule-object) |
| AUTO_MODERATION_BLOCK_MESSAGE | 143 | Message was blocked by AutoMod (according to a rule) | |

\* Object has exception(s) to available keys. See the [exceptions](#DOCS_RESOURCES_AUDIT_LOG/audit-log-change-object-audit-log-change-exceptions) section below for details.

Expand Down
Loading