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

fix(Structures): GuildIntegration missing optional #39

Open
wants to merge 2 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 9 additions & 9 deletions structures/GuildIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -37,7 +37,7 @@ export interface IntegrationApplication extends Base {
summary: string;
}

export enum IntegrationExpireBehaviour {
export enum IntegrationExpireBehavior {
REMOVE_ROLE,
KICK,
}
Expand Down
2 changes: 1 addition & 1 deletion structures/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export { default as BotGateway } from './Gateway';
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';
Expand Down