Added character limit to content in function Message.new

This commit is contained in:
Violet Millie 2020-11-16 15:10:45 +00:00
parent 19c0e00994
commit b913296e87
1 changed files with 1 additions and 1 deletions

View File

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