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
This commit is contained in:
Ryan Munro
2020-01-25 02:33:19 +11:00
committed by SpaceEEC
parent 464ef25898
commit 17237c70c8

2
typings/index.d.ts vendored
View File

@@ -1277,7 +1277,7 @@ declare module 'discord.js' {
public readonly members: Collection<Snowflake, GuildMember>;
public messages: Collection<Snowflake, Message>;
public nsfw: boolean;
public topic: string;
public topic: string | null;
public rateLimitPerUser: number;
public setRateLimitPerUser(rateLimitPerUser: number, reason?: string): Promise<TextChannel>;
public createWebhook(name: string, avatar: BufferResolvable, reason?: string): Promise<Webhook>;