From 17237c70c8495f85b9ba57b9eb81d32bffbae683 Mon Sep 17 00:00:00 2001 From: Ryan Munro Date: Sat, 25 Jan 2020 02:33:19 +1100 Subject: [PATCH] typings(TextChannel): topic can be null (#3687) * Mark topic as nullable for TextChannel * Backport separate NewsChannel typings * Ensure NewsChannel#rateLimitPerUser is undefined * Revert rateLimitPerUser, considered breaking * Add rateLimitPerUser back to typings * Linting * Revert NewsChannel extends TextBasedChannel --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index a7a612c77..44a28cc7f 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1277,7 +1277,7 @@ declare module 'discord.js' { public readonly members: Collection; public messages: Collection; public nsfw: boolean; - public topic: string; + public topic: string | null; public rateLimitPerUser: number; public setRateLimitPerUser(rateLimitPerUser: number, reason?: string): Promise; public createWebhook(name: string, avatar: BufferResolvable, reason?: string): Promise;