Skip to content

Commit

Permalink
types(MessagePayload): Specify typings for files and resolveFile (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite authored Sep 8, 2021
1 parent ea6a57e commit ea36955
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ export class MessagePayload {
public readonly isMessage: boolean;
public readonly isMessageManager: boolean;
public readonly isInteraction: boolean;
public files: unknown[] | null;
public files: HTTPAttachmentData[] | null;
public options: MessageOptions | WebhookMessageOptions;
public target: MessageTarget;

Expand All @@ -1429,7 +1429,9 @@ export class MessagePayload {
options: string | MessageOptions | WebhookMessageOptions,
extra?: MessageOptions | WebhookMessageOptions,
): MessagePayload;
public static resolveFile(fileLike: BufferResolvable | Stream | FileOptions | MessageAttachment): Promise<unknown>;
public static resolveFile(
fileLike: BufferResolvable | Stream | FileOptions | MessageAttachment,
): Promise<HTTPAttachmentData>;

public makeContent(): string | undefined;
public resolveData(): this;
Expand Down

0 comments on commit ea36955

Please sign in to comment.