fix: typings for 'WebhookMessageOptions' (#5476)

This commit is contained in:
izexi
2021-04-04 22:17:19 +01:00
committed by GitHub
parent e848d25c86
commit 67025e63e4

6
typings/index.d.ts vendored
View File

@@ -3381,7 +3381,11 @@ declare module 'discord.js' {
type WebhookEditMessageOptions = Pick<WebhookMessageOptions, 'content' | 'embeds' | 'files' | 'allowedMentions'>;
type WebhookMessageOptions = Omit<MessageOptions, 'embed'> & { embeds?: (MessageEmbed | object)[] };
type WebhookMessageOptions = Omit<MessageOptions, 'embed' | 'replyTo'> & {
username?: string;
avatarURL?: string;
embeds?: (MessageEmbed | object)[];
};
type WebhookRawMessageResponse = Omit<APIRawMessage, 'author'> & {
author: {