Http
The Http library is mostly used to generate easier webhook sends and Discord embed generation.
Functions
Post(Url | string, Content | table)
Encodes the specified content and sends a post request to the url.
PostEmbed(Url | string, Content | table)
Encodes the specified content and sends a post request to the url, using the { embeds = { Content } } format.
HeadshotThumbnail(Id | number)
Returns the 420x420 headshot thumbnail endpoint for the specified user id.
Generate(Keys | table(string), Values | table, ... | table(table(string, any)))
Returns a fields dictionary.
Http:PostEmbed(url, { fields = Http:Generate(
{ "Name", "Rank" },
{ "Test", "Guest" },
{ { "Id", 0 } })
})
Do(Action | string, ...)
Equivalent to HttpService[Action](HttpService, ...).