mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Update sendMessage.ts
This commit is contained in:
@@ -55,7 +55,7 @@ export function sendMessage(bot: Bot) {
|
||||
|
||||
if (content.components) validateComponents(bot, content.components);
|
||||
|
||||
if (content.content || content.embeds || content.components || content.file || content.stickerIds) {
|
||||
if (!content.content?.length && !content.embeds?.length && !content.components?.length && !content.file && !content.stickerIds?.length) {
|
||||
throw new Error(
|
||||
"When sending a message, you must provide a value for at least one of content, embeds, stickerIds, components, or file.",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user