So I want to put a hyperlink in the discord webhook embed. and add a name to it so that it says something other than the link itself. I’ve seen it happen before so I knwo it is possible b ut how do I achieve thes?
1 Like
1 Like
It doesnt work with fields
I want to put it in field
local httpservice = game:GetService("HttpService")
local api = "webhook"
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(p,r,e)
local ge = {{title=p.Name,url="https://www.roblox.com/users/"..p.UserId.."/profile"}}
for i=1,#e do
table.insert(ge,{name = "[Question "..i.."] "..e[i][1],value = e[i][2],["type"]="rich"})
end
local data = {
['embeds'] = {{
["author"] = {
["name"] = "Special Containment Procedures Foundation";
["icon_url"] = "https://i.imgur.com/u13IDHt.png";
},
["color"] = 00000,
["title"] = "__**Clearance-"..r.." Application**__",
["fields"] = ge
}}
}
local newdata = httpservice:JSONEncode(data)
httpservice:PostAsync(api,newdata)
end)
It give the error
Okay but how do you put url into field, if I put in value, type, and name it is still give error
Based on the webhook guide, I don’t think you can. I may be wrong though. Is there something that you want it to look like? If so, may you provide an image?
Like this
When you click it you get directed to their profile
Can you please help me I am running on a tight schedule I need this done ASAP
Simply put the text you want to be seen in square brackets: [Roblox Website], then the link right next to it enclosed in curly brackets: (https://www.roblox.com/)
Example: [Roblox Website](https://www.roblox.com/) gives Roblox Website
2 Likes
You are a saviour Thanks for saving me
1 Like