Skip to content

Commit

Permalink
feat(APIAuditLogChangeData): Add communication_disabled_until (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Dec 27, 2021
1 parent 751aee6 commit 0cf51ab
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
8 changes: 7 additions & 1 deletion deno/payloads/v8/auditLog.ts
Expand Up @@ -320,7 +320,8 @@ export type APIAuditLogChange =
| APIAuditLogChangeKeyGuildId
| APIAuditLogChangeKeyEntityType
| APIAuditLogChangeKeyStatus
| APIAuditLogChangeKeyLocation;
| APIAuditLogChangeKeyLocation
| APIAuditLogChangeKeyCommunicationDisabledUntil;

/**
* Returned when an entity's name is changed
Expand Down Expand Up @@ -644,6 +645,11 @@ export type APIAuditLogChangeKeyStatus = AuditLogChangeData<'status', GuildSched
*/
export type APIAuditLogChangeKeyLocation = AuditLogChangeData<'location', string>;

/**
* Returned when a user's timeout is changed
*/
export type APIAuditLogChangeKeyCommunicationDisabledUntil = AuditLogChangeData<'communication_disabled_until', string>;

interface AuditLogChangeData<K extends string, D> {
key: K;
/**
Expand Down
8 changes: 7 additions & 1 deletion deno/payloads/v9/auditLog.ts
Expand Up @@ -336,7 +336,8 @@ export type APIAuditLogChange =
| APIAuditLogChangeKeyDefaultAutoArchiveDuration
| APIAuditLogChangeKeyEntityType
| APIAuditLogChangeKeyStatus
| APIAuditLogChangeKeyLocation;
| APIAuditLogChangeKeyLocation
| APIAuditLogChangeKeyCommunicationDisabledUntil;

/**
* Returned when an entity's name is changed
Expand Down Expand Up @@ -683,6 +684,11 @@ export type APIAuditLogChangeKeyStatus = AuditLogChangeData<'status', GuildSched
*/
export type APIAuditLogChangeKeyLocation = AuditLogChangeData<'location', string>;

/**
* Returned when a user's timeout is changed
*/
export type APIAuditLogChangeKeyCommunicationDisabledUntil = AuditLogChangeData<'communication_disabled_until', string>;

interface AuditLogChangeData<K extends string, D> {
key: K;
/**
Expand Down
8 changes: 7 additions & 1 deletion payloads/v8/auditLog.ts
Expand Up @@ -320,7 +320,8 @@ export type APIAuditLogChange =
| APIAuditLogChangeKeyGuildId
| APIAuditLogChangeKeyEntityType
| APIAuditLogChangeKeyStatus
| APIAuditLogChangeKeyLocation;
| APIAuditLogChangeKeyLocation
| APIAuditLogChangeKeyCommunicationDisabledUntil;

/**
* Returned when an entity's name is changed
Expand Down Expand Up @@ -644,6 +645,11 @@ export type APIAuditLogChangeKeyStatus = AuditLogChangeData<'status', GuildSched
*/
export type APIAuditLogChangeKeyLocation = AuditLogChangeData<'location', string>;

/**
* Returned when a user's timeout is changed
*/
export type APIAuditLogChangeKeyCommunicationDisabledUntil = AuditLogChangeData<'communication_disabled_until', string>;

interface AuditLogChangeData<K extends string, D> {
key: K;
/**
Expand Down
8 changes: 7 additions & 1 deletion payloads/v9/auditLog.ts
Expand Up @@ -336,7 +336,8 @@ export type APIAuditLogChange =
| APIAuditLogChangeKeyDefaultAutoArchiveDuration
| APIAuditLogChangeKeyEntityType
| APIAuditLogChangeKeyStatus
| APIAuditLogChangeKeyLocation;
| APIAuditLogChangeKeyLocation
| APIAuditLogChangeKeyCommunicationDisabledUntil;

/**
* Returned when an entity's name is changed
Expand Down Expand Up @@ -683,6 +684,11 @@ export type APIAuditLogChangeKeyStatus = AuditLogChangeData<'status', GuildSched
*/
export type APIAuditLogChangeKeyLocation = AuditLogChangeData<'location', string>;

/**
* Returned when a user's timeout is changed
*/
export type APIAuditLogChangeKeyCommunicationDisabledUntil = AuditLogChangeData<'communication_disabled_until', string>;

interface AuditLogChangeData<K extends string, D> {
key: K;
/**
Expand Down

0 comments on commit 0cf51ab

Please sign in to comment.