mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 05:23:31 +01:00
chore: upgrade deps (#10824)
This commit is contained in:
@@ -63,15 +63,12 @@ export const messagePredicate = z
|
||||
poll: pollPredicate.optional(),
|
||||
})
|
||||
.refine(
|
||||
(data) => {
|
||||
return (
|
||||
data.content !== undefined ||
|
||||
(data.embeds !== undefined && data.embeds.length > 0) ||
|
||||
data.poll !== undefined ||
|
||||
(data.attachments !== undefined && data.attachments.length > 0) ||
|
||||
(data.components !== undefined && data.components.length > 0) ||
|
||||
(data.sticker_ids !== undefined && data.sticker_ids.length > 0)
|
||||
);
|
||||
},
|
||||
(data) =>
|
||||
data.content !== undefined ||
|
||||
(data.embeds !== undefined && data.embeds.length > 0) ||
|
||||
data.poll !== undefined ||
|
||||
(data.attachments !== undefined && data.attachments.length > 0) ||
|
||||
(data.components !== undefined && data.components.length > 0) ||
|
||||
(data.sticker_ids !== undefined && data.sticker_ids.length > 0),
|
||||
{ message: 'Messages must have content, embeds, a poll, attachments, components, or stickers' },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user