Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Discord web hook embed color?

So I have this code right now to send an embed:

local url = "myurl"
local message = {
    username="Raffle win bot",
    embeds={{
        fields={
            {value="text",name="text"},
            {value="text",name="text"}},
            title="text",description="text"}}}
data = game:GetService('HttpService'):JSONEncode(message)
game:GetService('HttpService'):PostAsync(url, data, Enum.HttpContentType.ApplicationJson)

is there any way to make this like green instead of grey?

1 comment

0

fixed

1 answer

Discord embeds support colors with the color key. If you want the color 0xFF00 (Lime green), you'll have to do

local url = "myurl"
local message = {
    username="Raffle win bot",
    embeds={{
	color = 0xFF00 -- or you can use the decimal representation, 65280
        fields={
            {value="text",name="text"},
            {value="text",name="text"}},
            title="text",description="text"}}}
data = game:GetService('HttpService'):JSONEncode(message)
game:GetService('HttpService'):PostAsync(url, data, Enum.HttpContentType.ApplicationJson)

3 comments

0

not working for me. I just get this: http://prntscr.com/idwik0

0

oh, sorry. the color has to be inside the embed

0

Thanks!! :))

This discussion is preserved as it was. New answers, comments, and votes are closed.