I’ve got this script, of course with my webhook link above, and I’m wondering how I would format this correctly, as I’ve looked over the dev forum and tried some other solutions with no fix.
i think the data you are sending to discord is confusing the bot
local Data = {
["username"] = player.Name,
["content"] = ":small_orange_diamond: joined server " ..Id
}
Data = http:JSONEncode(Data)
http:PostAsync(Webhooks[Id], Data)
“I’m known for being an idiot sometimes” ← something we have in commen XD
I should probably at least recommend that if you’re intending on embedding (using embeds = [ ] ), a content parameter isn’t required any further.
Secondly, you cannot have an empty “name” parameter in a field entry. I recommend using a Discord Webhook Generator and modeling your code off of that if you use HttpService’s JSONDecode function.