Added assert to method setColor

This commit is contained in:
Violet Millie 2020-11-02 13:54:30 +00:00
parent 216e060195
commit 6e3cdb83ec
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ function RichEmbed:setTimestamp()
end
function RichEmbed:setColor(rgb)
assert(rgb, "Color cannot be nil")
self.color = rgb.R * 65536 + rgb.G * 256 + rgb.B
end