fix(ThreadChannel): Handle possibly null parent (v13) (#8467)

This commit is contained in:
Jiralite
2022-08-10 19:17:21 +01:00
committed by GitHub
parent 78e494b06e
commit 2a46d9f58e
2 changed files with 5 additions and 4 deletions

2
typings/index.d.ts vendored
View File

@@ -2518,7 +2518,7 @@ export class ThreadChannel extends TextBasedChannelMixin(Channel, ['fetchWebhook
checkAdmin?: boolean,
): Readonly<Permissions> | null;
public fetchOwner(options?: BaseFetchOptions): Promise<ThreadMember | null>;
public fetchStarterMessage(options?: BaseFetchOptions): Promise<Message>;
public fetchStarterMessage(options?: BaseFetchOptions): Promise<Message | null>;
public setArchived(archived?: boolean, reason?: string): Promise<ThreadChannel>;
public setAutoArchiveDuration(
autoArchiveDuration: ThreadAutoArchiveDuration | 'MAX',