local url = "Your discord webhook URL"
local webhookService = require(game.ServerStorage.WebhookService)
webhookService:createEmbed(url, "This is a title!", "This is a message!", "https://i.imgur.com/4Kuye6W.jpeg")
I believe this is a very useful module for beginners or even advanced scripters as it saves a lot of time on creating Webhook embeds or messages
You can also post just messages
Example:
local url = "Your discord webhook URL"
local webhookService = require(game.ServerStorage.WebhookService)
webhookService:createMessage(url, "This is a message")
There is currently no embed fields but I will try to add them as soon as I can. I didn’t add it during creation because it was just meant to be a simple little thing where you can just send a message or a single embed with an image if you wanted.
Discord shouldn’t be used as a logging service. While it’s a cool creation and all (by all means, don’t take this down), this shouldn’t be meant for logging. Maybe you should generalize your module more to cover all kinds of webhooks?
Is there a way to make a similar script but for a bug report/suggestions box style format?
Such a thing though has a few hurdles, like needing a good system or two in place so a user couldn’t rate limit Discord and get you in trouble via them spamming it or it being used too frequently at once in big games. An easy solution I guess is it having a cooldown every time it’s used by a player.
I’m not sure if tags would be necessary or not. I’m not sure much about scripting things
honestly. All and all completely not neccesary I was just wondering if it was possible,
anyways, again so much thanks I’ll definitelly pick this up and see what we can do!