Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(APIAutoModeration): add support for auto moderation #418

Merged
merged 41 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
16421fa
feat(RESTJSONErrorCodes): add error 50080
vvito7 Apr 23, 2022
b974b00
refactor(GuildFeature): remove seven & three day thread archive
vvito7 Apr 25, 2022
fec7bf9
Merge branch 'main' of https://github.com/vitorlops/discord-api-types
vvito7 Apr 25, 2022
6f65990
fix: oops
vvito7 Apr 25, 2022
547bcd2
refator: use the new error name
vvito7 Apr 29, 2022
69b2524
refator: use the new error name 2
vvito7 Apr 29, 2022
2a77c89
Merge branch 'discordjs:main' into main
vvito7 Apr 29, 2022
686a9b2
Merge branch 'discordjs:main' into main
vvito7 Apr 30, 2022
712fdcf
feat(MessageType): add `AutoModerationMessage`
vvito7 May 1, 2022
c8675e7
feat(EmbedType): add `AutoModAlerts`
vvito7 May 1, 2022
f007c20
refactor: use `AutoModerationMessage` instead
vvito7 May 1, 2022
5799d9a
feat: add `AutoModeration` to `GuildFeature` & message to action
vvito7 May 1, 2022
538d32c
chore: change `AutoModerationMessage` description
vvito7 May 2, 2022
39ad85f
chore: forgot the alert
vvito7 May 2, 2022
3a1a972
feat(AuditLogEvent): add automod rules
vvito7 May 5, 2022
b24cd64
feat: add `AutoModerationBlockMessage` rule
vvito7 May 6, 2022
3a5364c
Merge branch 'main' into msg-type-for-automod
vvito7 May 13, 2022
0b10f96
feat: add `APIGuildAutoModRule`
vvito7 May 13, 2022
43b514d
fix: eslint problem
vvito7 May 13, 2022
c866059
refactor: handle automod properly
vvito7 May 22, 2022
2fe6156
fix: use export/import correctly
vvito7 May 22, 2022
02394c5
feat: upstream up-to-date
vvito7 Jun 8, 2022
86d45d0
feat: keep up-to-date
vvito7 Jun 14, 2022
0e8f067
chore: keep up-to-date
vvito7 Jun 16, 2022
08329e2
chore: fix action links
vvito7 Jun 16, 2022
c50ec00
refactor: make requested changes
vvito7 Jun 16, 2022
517afbf
feat: more requested changes
vvito7 Jun 16, 2022
ebcd6d7
feat: add missing `APIAuditLogChangeKeyTriggerType` type
vvito7 Jun 17, 2022
20c898c
refactor: optional fields & intent necessary for `content`
vvito7 Jun 18, 2022
b5dc29d
refactor: trigger metada fields are optional
vvito7 Jun 19, 2022
503a324
docs: add a note about `MESSAGE_CONTENT`
vvito7 Jun 22, 2022
0abb8e2
Merge branch 'main' into msg-type-for-automod
vvito7 Jun 30, 2022
d1ded47
refactor: add `allow_list` and improve docs
vvito7 Jun 30, 2022
0cec331
Merge branch 'main' into msg-type-for-automod
vvito7 Jul 1, 2022
9a9da67
refactor: update old stuff
vvito7 Aug 31, 2022
c0c3884
Merge branch 'msg-type-for-automod' of https://github.com/vvito7/disc…
vvito7 Aug 31, 2022
7bb1b12
docs: make requested changes
vvito7 Sep 23, 2022
1ac16c6
Merge branch 'main' into msg-type-for-automod
vvito7 Sep 23, 2022
567e7bf
feat: keep up-to-date
vvito7 Oct 1, 2022
6f8e84e
Merge branch 'msg-type-for-automod' of https://github.com/vvito7/disc…
vvito7 Oct 1, 2022
035e3cb
revert: remove support for regex matching
vvito7 Oct 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions deno/payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ export enum MessageType {
ThreadStarterMessage,
GuildInviteReminder,
ContextMenuCommand,
AutoModerationMessage,
vvito7 marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down Expand Up @@ -889,6 +890,10 @@ export enum EmbedType {
* Link embed
*/
Link = 'link',
/**
* Embed for auto moderation alerts
*/
AutoModerationMessage = 'auto_moderation_message',
}

/**
Expand Down
5 changes: 5 additions & 0 deletions deno/payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ export enum MessageType {
ThreadStarterMessage,
GuildInviteReminder,
ContextMenuCommand,
AutoModerationMessage,
}

/**
Expand Down Expand Up @@ -889,6 +890,10 @@ export enum EmbedType {
* Link embed
*/
Link = 'link',
/**
* Embed for auto moderation alerts
*/
AutoModerationMessage = 'auto_moderation_message',
}

/**
Expand Down
5 changes: 5 additions & 0 deletions payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ export enum MessageType {
ThreadStarterMessage,
GuildInviteReminder,
ContextMenuCommand,
AutoModerationMessage,
}

/**
Expand Down Expand Up @@ -889,6 +890,10 @@ export enum EmbedType {
* Link embed
*/
Link = 'link',
/**
* Embed for auto moderation alerts
*/
AutoModerationMessage = 'auto_moderation_message',
}

/**
Expand Down
5 changes: 5 additions & 0 deletions payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ export enum MessageType {
ThreadStarterMessage,
GuildInviteReminder,
ContextMenuCommand,
AutoModerationMessage,
}

/**
Expand Down Expand Up @@ -889,6 +890,10 @@ export enum EmbedType {
* Link embed
*/
Link = 'link',
/**
* Embed for auto moderation alerts
*/
AutoModerationMessage = 'auto_moderation_message',
}

/**
Expand Down