How to add a hyperlink to discord webhook

Hello, as the title states, I am currently messing with webhooks, and I wondered how to add a hyperlink to my webhook. I use webhooks for logging admin commands, and want to have a link to the profile of the admin, and the person they used commands against. if interested, heres the current script I have for logging.

eventsfolder.Log.Event:Connect(function(msg,id,title,color,url)
				local data = {
					['embeds'] = {{
					['title'] = title,
					['description'] = msg.."\n ",  
					['color'] = color,

					}}
				}
			
		local dataf = game:GetService("HttpService"):JSONEncode(data)
			if we == false then
			game:GetService("HttpService"):PostAsync(url,dataf)
			we = true
				wait(1)
				we = false
			end
		
	end)
1 Like

To hyperlink them you can use [title_here](link_here)
So to get profile the template link is: https://www.roblox.com/users/<User_ID>/profile

Note: Make sure to store the player.

So we can do.

['description'] = msg.."\n [Their profile](https://www.roblox.com/users/"..plr.UserId.."/profile)",

image

3 Likes