Update MessagePayload.js
Reported by Dux#2925 [881113828195205131]
This commit is contained in:
		| @@ -211,10 +211,10 @@ class MessagePayload { | ||||
|         } | ||||
|       } | ||||
|       // Check content | ||||
|       if (content.length > 2000) { | ||||
|       if (typeof content == 'string' && content.length > 2000) { | ||||
|         console.warn('[WARN] Content is longer than 2000 characters.'); | ||||
|       } | ||||
|       if (content.length > 4000) { | ||||
|       if (typeof content == 'string' && content.length > 4000) { | ||||
|         // Max length if user has nitro boost | ||||
|         throw new RangeError('MESSAGE_EMBED_LINK_LENGTH'); | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user