From b913296e87746fd40ea26c532aac8d07696b3bdf Mon Sep 17 00:00:00 2001 From: Norberto A Date: Mon, 16 Nov 2020 15:10:45 +0000 Subject: [PATCH] Added character limit to content in function Message.new --- src/Classes/Message.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Classes/Message.lua b/src/Classes/Message.lua index f1e6a57..cdf6486 100644 --- a/src/Classes/Message.lua +++ b/src/Classes/Message.lua @@ -12,7 +12,7 @@ Message.__index = Message function Message.new(content) assert(content, "Content cannot be nil.") - assert(string.len(content), "Content must not exceed 2000 characters.") + assert(string.len(content) <= 2000, "Content must not exceed 2000 characters.") local self = { content = content