mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
Update send_message.ts
This commit is contained in:
@@ -145,13 +145,6 @@ export async function sendMessage(
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
content.nonce &&
|
||||
!validateLength(content.nonce.toString(), { max: 25 })
|
||||
) {
|
||||
throw new Error(Errors.NONCE_TOO_LONG);
|
||||
}
|
||||
|
||||
const result = await rest.runMethod<Message>(
|
||||
"post",
|
||||
endpoints.CHANNEL_MESSAGES(channelId),
|
||||
|
||||
Reference in New Issue
Block a user