mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
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:
parent
464ef25898
commit
17237c70c8
1 changed files with 1 additions and 1 deletions
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue