Skip to content

Commit

Permalink
fix: detect components
Browse files Browse the repository at this point in the history
  • Loading branch information
liy77 committed Feb 29, 2024
1 parent da32724 commit 0ce485e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export function transformMessagePostData(
};
}

if (!data.files && !data.embeds && !data.content) {
if (!data.files && !data.embeds && !data.content && !data.components?.length) {
throw MakeError({
name: "InvalidMessagePostData",
message:
Expand Down

0 comments on commit 0ce485e

Please sign in to comment.