mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00: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:
parent
99e8d3c540
commit
e13b3f550d
1 changed files with 2 additions and 2 deletions
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>>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue