From 64d9cc18acffaf81545d3974d878c26d4428d04d Mon Sep 17 00:00:00 2001 From: Norberto A Date: Sun, 1 Nov 2020 17:27:59 +0000 Subject: [PATCH] Updated function setColor --- src/Classes/RichEmbed.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Classes/RichEmbed.lua b/src/Classes/RichEmbed.lua index 9b25f03..5a89046 100644 --- a/src/Classes/RichEmbed.lua +++ b/src/Classes/RichEmbed.lua @@ -25,7 +25,8 @@ function RichEmbed:setTimestamp() self.timestamp = os.date("!%Y-%m-%dT%H:%M:%SZ") end -function RichEmbed:setColor() +function RichEmbed:setColor(rgb) + self.color = rgb.R * 65536 + rgb.G * 256 + rgb.B end function RichEmbed:setFooter(text, iconUrl)