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>
This commit is contained in:
Charlie
2019-12-21 21:12:35 +01:00
committed by SpaceEEC
parent 99e8d3c540
commit e13b3f550d

4
typings/index.d.ts vendored
View File

@@ -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<Webhook>;
public setNSFW(nsfw: boolean, reason?: string): Promise<TextChannel>;
public setRateLimitPerUser(rateLimitPerUser: number, reason?: string): Promise<TextChannel>;
@@ -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<Webhook>;
public setNSFW(nsfw: boolean, reason?: string): Promise<NewsChannel>;
public fetchWebhooks(): Promise<Collection<Snowflake, Webhook>>;