types(TextBasedChannel): make lastPinAt nullable (#4842)

This commit makes `TextBasedChannelFields#lastPinAt` nullable in the
typings.
This commit is contained in:
cherryblossom000 2020-10-18 00:33:57 +11:00 committed by GitHub
parent 824e92229d
commit 4a6fb9a7d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
typings/index.d.ts vendored
View file

@ -2071,7 +2071,7 @@ declare module 'discord.js' {
interface TextBasedChannelFields extends PartialTextBasedChannelFields {
_typing: Map<string, TypingData>;
lastPinTimestamp: number | null;
readonly lastPinAt: Date;
readonly lastPinAt: Date | null;
typing: boolean;
typingCount: number;
awaitMessages(filter: CollectorFilter, options?: AwaitMessagesOptions): Promise<Collection<Snowflake, Message>>;