Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HttpService = game:GetService("HttpService")
- local WebhookURL = "" --<<--WEBHOOK URL HERE
- local function postToDiscord(Message)
- local Data = {
- ["content"] = Message
- }
- Data = HttpService:JSONEncode(Data)
- HttpService:PostAsync(WebhookURL, Data)
- end
- game.ReplicatedStorage.Suggest.OnServerEvent:Connect(function(Player, Suggestion)
- postToDiscord("Suggestion from " .. Player.Name .. ": " .. Suggestion)
- end)
Add Comment
Please, Sign In to add comment