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