Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Discord webhook 404 embeds not working?

Asked by 5 years ago

errors 23:25:50.586 - HTTP 400 i am trying to get embeds to work but all it does is error' idk what i am doing wrong. i am trying to figure it out even spent hours on it. `local http = game:GetService('HttpService')

local channelURL = 'https://discordapp.com/api/webhooks/'

local bot = {}

function bot.post(content)

print(content.Embeds)

return http:PostAsync(

channelURL,

http:JSONEncode {

-- content = content.Embeds,

username = content.Name,

avatar_url = 'https://t6.rbxcdn.com/3481d7740a1071ad095250aa3fed0b01',

-- tts = tts,

-- file = file,

embeds = {{

--color = 0xFF00,

fields = {

title= "Application",

description = content.Embeds,

}

}}

})

end

return bot`

0
please embed I literally can't read this eloiishot 47 — 5y
0
nvm my friend king figured it out TheScriptKing 102 — 5y
0
For future readers, the reason it throw a error 400 is because discord itself blocked http request from roblox.com because of spamming the api. xJathur95x 129 — 5y

Answer this question