Skip to content

Commit

Permalink
Add components to webhooks messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiomaleQ committed Sep 4, 2023
1 parent a3590c8 commit 9209ddf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/structures/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export class Webhook {
tts: (option as WebhookMessageOptions)?.tts,
allowed_mentions: (option as WebhookMessageOptions)?.allowedMentions,
username: undefined as undefined | string,
avatar_url: undefined as undefined | string
avatar_url: undefined as undefined | string,
components: (option as WebhookMessageOptions)?.components
}

if ((option as WebhookMessageOptions)?.name !== undefined) {
Expand Down

0 comments on commit 9209ddf

Please sign in to comment.