You can’t post to discord, without nothing. You either create a plain text using an embed,
local httpService = game:GetService("HttpService")
local URL = "URL" -- I put my URL here but as i said before i'm gonna hide it to prevent problems
local Data = httpService:GetAsync(URL)
local Announcement = game:GetService("ReplicatedStorage").ANNOUNCEMENT
local RemoteEvent = game.ReplicatedStorage:WaitForChild("RemoteEvent")
while wait() do
RemoteEvent.OnServerEvent:Connect(function()
local data = {
["embed"] = {{
["Title"] = "test",
["Description"] = Announcement.Value
}}
}
local EncodedData = httpService:JSONEcode(data)
httpService:PostAsync(url, EncodedData)
end)
Why are you using HTTPSERVICES, for an announcement…?
URL > Webhook URL,
If you want a specific value set to that you do that via a local script making a textbox & a textbutton, and a script inside the frame with them inside.
What i’m trying to make is a GLOBAL announcement, so i can send a message in every server without update the game (and without shutdown it), i’m also using the http service for other things, like change the time of a live countdown, etc…
Thank you so much, but i’m looking for other things, my MAIN problem is about this error i’ve said before, nothing else, just this error, i want to know how to fix it.
Let me explain, so i’ve put a BoolValue in Replicated Storage, i made a LocalScript where the TextLabel text contains the BoolValue text, i’m currently using a page called “Pastebin” where i can edit my code and put the new announcement there, so i’m using the HttpService to get the data of my code in Pastebin. So that announcement should be posted in every single server with no problem, but recently i had this error that doesn’t let me do anything with the httpservice.
Where are the URL’s being sent? You don’t have to hand out the actual url itself, but is it to Roblox? Discord? This will most likely tell us the issue!
Let’s give an example: imagine there’s a live event, and i need to announce something saying that the event will be delayed due to some problems, how do i send that announcement to every server active, without update/shutdown the game? i don’t want the announcement to be published only in the server i am.