local httpservice = game:GetService("HttpService")
local announcer = "webhook"
game.ReplicatedStorage.events.secondaary.OnServerEvent:Connect(function(plr, commission)
if commission == "AnnounceCommsOpen" then
local Data = {
['embed'] = {
["title"] = "sam's commission notifier",
["description"] = "Ahoy, commissions are now **open**, if you are interested in ordering from Sam, goto #tickets! @everyone"
}
}
Data = httpservice:JSONEncode(Data)
httpservice:PostAsync(announcer, Data)
end
end)
local script:
script.Parent.StaffPanel.AnnounceCommsOpen.MouseButton1Click:Connect(function()
game.ReplicatedStorage.events.secondaary:FireServer("AnnounceCommsOpen")
end)
Do you have a valid webhook url in the announcer variable? Is this sending Data to discord or somewhere else?
embed is not a valid data field. The field should be named embeds and be an array of Embed Objects.
Also, why are you using Roblox with this?
I marked it as ‘webhook’ as I did not want, people spamming my webhooks.
I was told to put ‘embed’ before it was, ‘embeds’
That is incorrect; the field should be embeds.
Which I have put as now, I am so confused on why this is happening as I do not get an error.
You are setting embeds as an Embed Object, but embeds is an array of Embed Objects.
What do I change it to then, because I have used this method in the past and It was worked.
Change embeds to be an array of Embed Objects.
I do not know what you mean by that, can you elaborate?
embeds should look like this:
embeds = {
-- embed objects
}
Can you also tell me why Roblox is involved instead of having your staff members posting directly in the channel?
`local Data = {
['embeds'] = {
{
["tiitle"] = "sam's commission notifier",
["description"] = "Ahoy, commissions are now open, if you are interested in ordering from Sam, goto #tickets!"
}
}
}`
I wanted to have a unique system, for staff to have. If you have an issue with it, don’t come at me. It was simply a unique system to use.
Sorry not formatted correctly but you need
["embeds"] = {{ --stuff here }}
Basically you need another set of {} inside before the [“title”] Hope that helps!
Thank, you trying now, much appreciated. xx
local Data = {
['embeds'] = { -- list of embeds
{ -- embed object
["title"] = "sam's commission notifier",
["description"] = "Ahoy, commissions are now **open**, if you are interested in ordering from Sam, goto #tickets! @everyone"
}
}
}
I still do not understand this system / way. especially this part: ['embeds'] = { -- list of embeds
No problem! You may want to mark a solution if it is working now to close the forum 
Thank you again, and I will indeed. xx