From a725c635c8f77d0fae3759428ada0fa484b60d35 Mon Sep 17 00:00:00 2001 From: SiroTM Date: Wed, 9 Jun 2021 09:58:55 -0400 Subject: [PATCH] refactor(Structures): GuildIntegration --- structures/GuildIntegration.ts | 18 +++++++++--------- structures/index.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/structures/GuildIntegration.ts b/structures/GuildIntegration.ts index e8d8415..c916b61 100644 --- a/structures/GuildIntegration.ts +++ b/structures/GuildIntegration.ts @@ -3,18 +3,18 @@ import Base from './Base'; export default interface GuildIntegration extends Base { account: IntegrationAccount; application?: IntegrationApplication; - enable_emoticons: boolean; + enable_emoticons?: boolean; enabled: boolean; - expire_behaviour: IntegrationExpireBehaviour; - expire_grace_period: number; + expire_behavior?: IntegrationExpireBehavior; + expire_grace_period?: number; name: string; - revoked: boolean; - role_id: string; - subscriber_count: number; + revoked?: boolean; + role_id?: string; + subscriber_count?: number; synced_at: Date; - syncing: boolean; + syncing?: boolean; type: InterationType; - user: unknown; // TODO User + user?: unknown; // TODO User } export interface BotIntegration extends Base { @@ -37,7 +37,7 @@ export interface IntegrationApplication extends Base { summary: string; } -export enum IntegrationExpireBehaviour { +export enum IntegrationExpireBehavior { REMOVE_ROLE, KICK, } diff --git a/structures/index.ts b/structures/index.ts index 7aa54cd..4d5a5af 100644 --- a/structures/index.ts +++ b/structures/index.ts @@ -3,7 +3,7 @@ export { default as BotGateway } from './BotGateway'; export { default as Channel, ChannelPartial, WebhookChannel, ChannelType, ThreadMember, ThreadMetadata, VideoQuality } from './Channel'; export { default as Emoji, PartialEmoji } from './Emoji'; export { default as Guild, InviteGuild, TemplateGuild, WebhookGuild, DefaultMessageNotificationLevel, ExplicitContentFilterLevel, GuildFeatures, MFALevel, PremiumTier, SystemChannelFlags, VerificationLevel, WelcomeScreen, WelcomeScreenChannel } from './Guild'; -export { default as GuildIntegration, BotIntegration, IntegrationAccount, IntegrationApplication, IntegrationExpireBehaviour, InterationType } from './GuildIntegration'; +export { default as GuildIntegration, BotIntegration, IntegrationAccount, IntegrationApplication, IntegrationExpireBehavior, InterationType } from './GuildIntegration'; export { default as GuildMember } from './GuildMember'; export { default as GuildPreview } from './GuildPreview'; export { default as GuildTemplate } from './GuildTemplate';