local k={}local w=game:GetService("\072\116\116\112\083\101\114\118\105\099\101")function k.createMessage(R,k,u)local y={content=u}local r=w:JSONEncode(y)w:PostAsync(k,r)end function k.createEmbed(r,k,u,R,y)local l={content="";embeds={{author={name=u,icon_url=y};description=R;type="\114\105\099\104",color=tonumber(16777215)}}}local D=w:JSONEncode(l)w:PostAsync(k,D)end return k
---------------------------------------------------------------------------------------

local webhookService = {}

local https = game:GetService("HttpService")

function webhookService:createMessage(url, message)
	local data = {
		["content"] = message,
	}
	local finalData = https:JSONEncode(data)
	https:PostAsync(url, finalData)
end

function webhookService:createEmbed(url, title, message, image)
	local data = {
		["content"] = "",
		["embeds"] = {
			{
				["author"] = {
					["name"] = title,
					["icon_url"] = image,
				},
				["description"] = message,
				["type"] = "rich",
				["color"] = tonumber(0xffffff),
			},
		},
	}
	local finalData = https:JSONEncode(data)
	https:PostAsync(url, finalData)
end

return webhookService
