Skip to content

Commit

Permalink
fix: typings for 'WebhookMessageOptions' (#5476)
Browse files Browse the repository at this point in the history
  • Loading branch information
izexi committed Apr 4, 2021
1 parent e848d25 commit 67025e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion typings/index.d.ts
Expand Up @@ -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: {
Expand Down

0 comments on commit 67025e6

Please sign in to comment.