From e7eda72c9dc6ac27206fe77b372af96dfc932254 Mon Sep 17 00:00:00 2001 From: Androz Date: Wed, 12 Aug 2020 23:18:58 +0200 Subject: [PATCH] feat(typings): add number type for setExplicitContentFilter method (#4694) --- typings/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index bb56f3101..7f83860b4 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -699,7 +699,7 @@ declare module 'discord.js' { ): Promise; public setDiscoverySplash(discoverySplash: Base64Resolvable | null, reason?: string): Promise; public setEmbed(embed: GuildWidgetData, reason?: string): Promise; - public setExplicitContentFilter(explicitContentFilter: ExplicitContentFilterLevel, reason?: string): Promise; + public setExplicitContentFilter(explicitContentFilter: ExplicitContentFilterLevel | number, 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; @@ -711,7 +711,7 @@ declare module 'discord.js' { public setSplash(splash: Base64Resolvable | null, reason?: string): Promise; public setSystemChannel(systemChannel: ChannelResolvable | null, reason?: string): Promise; public setSystemChannelFlags(systemChannelFlags: SystemChannelFlagsResolvable, reason?: string): Promise; - public setVerificationLevel(verificationLevel: VerificationLevel, reason?: string): Promise; + public setVerificationLevel(verificationLevel: VerificationLevel | number, reason?: string): Promise; public setWidget(widget: GuildWidgetData, reason?: string): Promise; public splashURL(options?: ImageURLOptions): string | null; public toJSON(): object; @@ -2542,8 +2542,8 @@ declare module 'discord.js' { interface GuildEditData { name?: string; region?: string; - verificationLevel?: VerificationLevel; - explicitContentFilter?: ExplicitContentFilterLevel; + verificationLevel?: VerificationLevel | number; + explicitContentFilter?: ExplicitContentFilterLevel | number; defaultMessageNotifications?: DefaultMessageNotifications | number; afkChannel?: ChannelResolvable; systemChannel?: ChannelResolvable;