- Warn msg
- Add `nonce` param (interaction)
This commit is contained in:
March 7th
2022-06-08 12:35:19 +07:00
parent 057f6ae3ad
commit 83ce0a0f43
6 changed files with 20 additions and 7 deletions

View File

@@ -638,7 +638,7 @@ class Guild extends AnonymousGuild {
// MODAL_SUMMIT :))
}
if (type < 1 || type > 3) {
throw new RangeError('Type must be 1, 2, 3');
throw new RangeError('Type must be 1 (CHAT_INPUT), 2 (USER), 3 (MESSAGE)');
}
if (typeof type !== 'number') {
throw new TypeError('Type must be a number | string');