Skip to content

Commit

Permalink
feat(APIAuditLog): add guild_scheduled_events prop (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Dec 1, 2021
1 parent 52c91f8 commit c7efcd5
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
12 changes: 11 additions & 1 deletion deno/payloads/v8/auditLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import type { StickerFormatType } from './sticker.ts';
import type { APIUser } from './user.ts';
import type { APIWebhook } from './webhook.ts';
import type { StageInstancePrivacyLevel } from './stageInstance.ts';
import type { GuildScheduledEventEntityType, GuildScheduledEventStatus } from './guildScheduledEvent.ts';
import type {
APIGuildScheduledEvent,
GuildScheduledEventEntityType,
GuildScheduledEventStatus,
} from './guildScheduledEvent.ts';

/**
* https://discord.com/developers/docs/resources/audit-log#audit-log-object-audit-log-structure
Expand Down Expand Up @@ -47,6 +51,12 @@ export interface APIAuditLog {
* See https://discord.com/developers/docs/resources/guild#integration-object
*/
integrations: APIGuildIntegration[];
/**
* The guild scheduled events in the audit log
*
* See https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object
*/
guild_scheduled_events: APIGuildScheduledEvent[];
}

/**
Expand Down
12 changes: 11 additions & 1 deletion deno/payloads/v9/auditLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import type { StickerFormatType } from './sticker.ts';
import type { APIUser } from './user.ts';
import type { APIWebhook } from './webhook.ts';
import type { StageInstancePrivacyLevel } from './stageInstance.ts';
import type { GuildScheduledEventEntityType, GuildScheduledEventStatus } from './guildScheduledEvent.ts';
import type {
APIGuildScheduledEvent,
GuildScheduledEventEntityType,
GuildScheduledEventStatus,
} from './guildScheduledEvent.ts';

/**
* https://discord.com/developers/docs/resources/audit-log#audit-log-object-audit-log-structure
Expand Down Expand Up @@ -55,6 +59,12 @@ export interface APIAuditLog {
* See https://discord.com/developers/docs/resources/channel#channel-object
*/
threads: APIChannel[];
/**
* The guild scheduled events in the audit log
*
* See https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object
*/
guild_scheduled_events: APIGuildScheduledEvent[];
}

/**
Expand Down
12 changes: 11 additions & 1 deletion payloads/v8/auditLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import type { StickerFormatType } from './sticker';
import type { APIUser } from './user';
import type { APIWebhook } from './webhook';
import type { StageInstancePrivacyLevel } from './stageInstance';
import type { GuildScheduledEventEntityType, GuildScheduledEventStatus } from './guildScheduledEvent';
import type {
APIGuildScheduledEvent,
GuildScheduledEventEntityType,
GuildScheduledEventStatus,
} from './guildScheduledEvent';

/**
* https://discord.com/developers/docs/resources/audit-log#audit-log-object-audit-log-structure
Expand Down Expand Up @@ -47,6 +51,12 @@ export interface APIAuditLog {
* See https://discord.com/developers/docs/resources/guild#integration-object
*/
integrations: APIGuildIntegration[];
/**
* The guild scheduled events in the audit log
*
* See https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object
*/
guild_scheduled_events: APIGuildScheduledEvent[];
}

/**
Expand Down
12 changes: 11 additions & 1 deletion payloads/v9/auditLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import type { StickerFormatType } from './sticker';
import type { APIUser } from './user';
import type { APIWebhook } from './webhook';
import type { StageInstancePrivacyLevel } from './stageInstance';
import type { GuildScheduledEventEntityType, GuildScheduledEventStatus } from './guildScheduledEvent';
import type {
APIGuildScheduledEvent,
GuildScheduledEventEntityType,
GuildScheduledEventStatus,
} from './guildScheduledEvent';

/**
* https://discord.com/developers/docs/resources/audit-log#audit-log-object-audit-log-structure
Expand Down Expand Up @@ -55,6 +59,12 @@ export interface APIAuditLog {
* See https://discord.com/developers/docs/resources/channel#channel-object
*/
threads: APIChannel[];
/**
* The guild scheduled events in the audit log
*
* See https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object
*/
guild_scheduled_events: APIGuildScheduledEvent[];
}

/**
Expand Down

0 comments on commit c7efcd5

Please sign in to comment.