mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@@ -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>>;
|
||||
|
||||
Reference in New Issue
Block a user