I made a GUI that when you type source codes in it, it runs the code. What I need help with though is a logger for the code people put into the GUI, when they click “Execute” it runs the code. When they hit that button I also want it to send the code to Discord through a webhook.
That’s not possible unless you have very low traffic or combine posts across servers. Definitely consider whether or not it’s a scalable solution and maybe consider other options.
local execute = script.Parent
local text = script.Parent.Parent.TextBox
local remote = script.Parent.MSFunction
execute.MouseButton1Click:Connect(function()
remote:FireServer(text.Text)
end)
Your “solution” should be to use a proper logging service. Discord isn’t meant to be used as one and @Naco88 's points are valid, regardless of your intent or plans to implement some sort of “anti-spam.”
People like you are the reason why Discord had historically blacklisted all requests coming from Roblox: webhooks were being abused by developers.
You may not care about the consequences, but with enough ignorant developers Discord will take any action necessary toward you and the rest of the developer community.