I’m trying to see how flexible I can make webhooks in ROBLOX, but I can’t find anything online about advanced use of webhooks.
I’ve used this so far but its not LUA: Introduction - Discord Webhooks Guide
I’m trying to see how flexible I can make webhooks in ROBLOX, but I can’t find anything online about advanced use of webhooks.
I’ve used this so far but its not LUA: Introduction - Discord Webhooks Guide
Most of the examples on that site are in json, and it’s really easy to convert json to lua.
Json (Reddit example off the site):
{
"content": "{{Content}}",
"embeds": [{
"color": 16729344,
"author": {
"name": "u/{{Author}}",
"url": "https://www.reddit.com/user/{{Author}}",
"icon_url": "https://avatar-resolver.vercel.app/reddit/{{Author}}"
},
"title": "<<<{{Title}}>>>",
"url": "https://www.reddit.com",
"image": { "url": "https://www.reddit.com" },
"footer": { "text": "r/{{Subreddit}} • Posted at {{PostedAt}}" }
}]
}
Lua:
{
content = "{{Content}}",
embeds = {{
color = 16729344,
author = {
name = "u/{{Author}}",
url = "https://www.reddit.com/user/{{Author}}",
icon_url = "https://avatar-resolver.vercel.app/reddit/{{Author}}"
},
title = "<<<{{Title}}>>>",
url = "https://www.reddit.com",
image = { url = "https://www.reddit.com" },
footer = { text = "r/{{Subreddit}} • Posted at {{PostedAt}}" }
}}
}
You can do the same thing for most other languages if you just get a minimal understanding of how the language is structured.