From 97f3b6c5eb5596501ca4dbbf18b01de4ac5f358e Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Fri, 24 May 2019 15:42:09 +0200 Subject: [PATCH] typings(Guild): remove voiceConnection, add voice, cleanup rest Fixes #3293 --- typings/index.d.ts | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index c98e7a16c..ee03f4c3b 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -398,21 +398,27 @@ declare module 'discord.js' { public afkTimeout: number; public applicationID: Snowflake; public available: boolean; + public banner: string | null; public channels: GuildChannelStore; public readonly createdAt: Date; public readonly createdTimestamp: number; - public readonly defaultRole: Role | null; public defaultMessageNotifications: DefaultMessageNotifications | number; + public readonly defaultRole: Role | null; public deleted: boolean; + public description: string | null; + public embedChannel: GuildChannel | null; + public embedChannelID: Snowflake | null; public embedEnabled: boolean; public emojis: GuildEmojiStore; public explicitContentFilter: number; public features: GuildFeatures[]; - public icon: string; + public icon: string | null; public id: Snowflake; public readonly joinedAt: Date; public joinedTimestamp: number; public large: boolean; + public maximumMembers: number | null; + public maximumPresences: number | null; public readonly me: GuildMember | null; public memberCount: number; public members: GuildMemberStore; @@ -426,24 +432,18 @@ declare module 'discord.js' { public roles: RoleStore; public readonly shard: WebSocketShard; public shardID: number; - public splash: string; + public splash: string | null; public readonly systemChannel: TextChannel | null; - public systemChannelID: Snowflake; + public systemChannelID: Snowflake | null; + public vanityURLCode: string | null; public verificationLevel: number; - public maximumMembers: number; - public maximumPresences: number; - public vanityURLCode: string; - public description: string; - public banner: string; - public widgetEnabled: boolean; - public widgetChannelID: Snowflake; - public readonly widgetChannel: TextChannel; - public embedChannelID: Snowflake; - public readonly embedChannel: TextChannel; public readonly verified: boolean; - public readonly voiceConnection: VoiceConnection | null; + public readonly voice: VoiceState | null; + public readonly widgetChannel: TextChannel | null; + public widgetChannelID: Snowflake | null; + public widgetEnabled: boolean | null; public addMember(user: UserResolvable, options: AddGuildMemberOptions): Promise; - public bannerURL(options?: AvatarOptions): string; + public bannerURL(options?: AvatarOptions): string | null; public createIntegration(data: IntegrationData, reason?: string): Promise; public delete(): Promise; public edit(data: GuildEditData, reason?: string): Promise; @@ -451,29 +451,29 @@ declare module 'discord.js' { public fetch(): Promise; public fetchAuditLogs(options?: GuildAuditLogsFetchOptions): Promise; public fetchBans(): Promise>; + public fetchEmbed(): Promise; public fetchIntegrations(): Promise>; public fetchInvites(): Promise>; public fetchVanityCode(): Promise; public fetchVoiceRegions(): Promise>; public fetchWebhooks(): Promise>; - public fetchEmbed(): Promise; - public iconURL(options?: AvatarOptions): string; + public iconURL(options?: AvatarOptions): string | null; public leave(): Promise; public member(user: UserResolvable): GuildMember | null; - public setAFKChannel(afkChannel: ChannelResolvable, reason?: string): Promise; + public setAFKChannel(afkChannel: ChannelResolvable | null, reason?: string): Promise; public setAFKTimeout(afkTimeout: number, reason?: string): Promise; public setChannelPositions(channelPositions: ChannelPosition[]): Promise; public setDefaultMessageNotifications(defaultMessageNotifications: DefaultMessageNotifications | number, reason?: string): Promise; + public setEmbed(embed: GuildEmbedData, reason?: string): Promise; public setExplicitContentFilter(explicitContentFilter: number, reason?: string): Promise; - public setIcon(icon: Base64Resolvable, reason?: string): Promise; + public setIcon(icon: Base64Resolvable | null, reason?: string): Promise; public setName(name: string, reason?: string): Promise; public setOwner(owner: GuildMemberResolvable, reason?: string): Promise; public setRegion(region: string, reason?: string): Promise; - public setSplash(splash: Base64Resolvable, reason?: string): Promise; - public setSystemChannel(systemChannel: ChannelResolvable, reason?: string): Promise; + public setSplash(splash: Base64Resolvable | null, reason?: string): Promise; + public setSystemChannel(systemChannel: ChannelResolvable | null, reason?: string): Promise; public setVerificationLevel(verificationLevel: number, reason?: string): Promise; - public setEmbed(embed: GuildEmbedData, reason?: string): Promise; - public splashURL(options?: AvatarOptions): string; + public splashURL(options?: AvatarOptions): string | null; public toJSON(): object; public toString(): string; }