Merge branch 'main' into change-enums

This commit is contained in:
ITOH
2021-05-05 18:04:50 +02:00
10 changed files with 57 additions and 19 deletions
-7
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),