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


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

