Update send_message.ts

This commit is contained in:
ITOH
2021-05-04 22:20:36 +02:00
parent 2d25f275a9
commit 3694c377eb

View File

@@ -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),