Skip to content

Commit 314c066

Browse files
authored
Merge pull request #365 from ZiomaleQ/main
Add components to webhooks messages
2 parents 864cab1 + 9209ddf commit 314c066

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/structures/webhook.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ export class Webhook {
116116
tts: (option as WebhookMessageOptions)?.tts,
117117
allowed_mentions: (option as WebhookMessageOptions)?.allowedMentions,
118118
username: undefined as undefined | string,
119-
avatar_url: undefined as undefined | string
119+
avatar_url: undefined as undefined | string,
120+
components: (option as WebhookMessageOptions)?.components
120121
}
121122

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

0 commit comments

Comments
 (0)