Skip to content

Commit

Permalink
Fix Message Webhook types (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 authored Mar 24, 2021
1 parent c81b689 commit d9e12a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ declare namespace Eris {
// Voice
type ConverterCommand = "./ffmpeg" | "./avconv" | "ffmpeg" | "avconv";

// Webhook
type MessageWebhookContent = Pick<WebhookPayload, "content" | "embeds">;

// INTERFACES
// Internals
Expand Down Expand Up @@ -854,7 +856,6 @@ declare namespace Eris {
token: string;
user: PartialUser;
}
interface MessageWebhookContent extends Pick<WebhookPayload, "content" | "embeds"> {}
interface WebhookOptions {
avatar?: string;
channelID?: string;
Expand Down Expand Up @@ -2060,7 +2061,7 @@ declare namespace Eris {
timestamp: number;
tts: boolean;
type: number;
webhookID?: string;
webhookID: T extends GuildTextable ? string | undefined : undefined;
constructor(data: BaseData, client: Client);
addReaction(reaction: string): Promise<void>;
/** @deprecated */
Expand Down

0 comments on commit d9e12a7

Please sign in to comment.