Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Discord Connection with Roblox Feedback?

Asked by 7 years ago

Hello, I want to ask how can I make Discord Feedback for my game? I really need instructions how to make it! I'm noob in Lua world but if anyone answer it please explain how to make it.

0
Calling yourself a "noob" won't get you anywhere. Wilbob30 69 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

Lovely old HttpService

local dataToSend = {
    ['username'] = "Hello", --Discord has two parameters, "username" and "content"
    ['content'] = "Test"    --Thank you.
}

local WebhookURL = "https://discordapp.com/api/webhooks/284468980192903168/GJwWo-WI_sF5ZJSiyXiP8bl-4fUFnXk-gWu3hRI8nq6rqn0kxxulHfBXRfU-mcp7N2SK" --Replace with your Webhook URL

local data = game:GetService("HttpService"):JSONEncode(dataToSend) --Encode into JSON which can be sent over the web

game:GetService("HttpService"):PostAsync(WebhookURL, data) --Send it
Ad

Answer this question