Added character limit to content in function Message.new
This commit is contained in:
parent
19c0e00994
commit
b913296e87
|
@ -12,7 +12,7 @@ Message.__index = Message
|
||||||
|
|
||||||
function Message.new(content)
|
function Message.new(content)
|
||||||
assert(content, "Content cannot be nil.")
|
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 = {
|
local self = {
|
||||||
content = content
|
content = content
|
||||||
|
|
Reference in New Issue