From e13b3f550dd550b5c3fb8ae211a456d330a7768f Mon Sep 17 00:00:00 2001 From: Charlie Date: Sat, 21 Dec 2019 21:12:35 +0100 Subject: [PATCH] typings: TextChannel.topic & NewsChannel.topic should be nullable (#3628) * Fix GuildChannel#topic to be optional * Update typings/index.d.ts Implement the suggested change from optional to null return Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com> * Update typings/index.d.ts Implement the suggested change from optional to null return Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com> Co-authored-by: izexi <43889168+izexi@users.noreply.github.com> --- typings/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index c8400d184..d26160feb 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1373,7 +1373,7 @@ declare module 'discord.js' { public messages: MessageStore; public nsfw: boolean; public rateLimitPerUser: number; - public topic: string; + public topic: string | null; public createWebhook(name: string, options?: { avatar?: BufferResolvable | Base64Resolvable, reason?: string }): Promise; public setNSFW(nsfw: boolean, reason?: string): Promise; public setRateLimitPerUser(rateLimitPerUser: number, reason?: string): Promise; @@ -1384,7 +1384,7 @@ declare module 'discord.js' { constructor(guild: Guild, data?: object); public messages: MessageStore; public nsfw: boolean; - public topic: string; + public topic: string | null; public createWebhook(name: string, options?: { avatar?: BufferResolvable | Base64Resolvable, reason?: string }): Promise; public setNSFW(nsfw: boolean, reason?: string): Promise; public fetchWebhooks(): Promise>;