Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is there a specific script to use to link a web hook from discord to a script?

I have HTTP enabled I don't know what script I need to use to link a webhook from a discord server to a script.

1 answer

You'll need to get the webhook I'd and use the script I've provided.

local http = game:GetService('HttpService')
local Id = your webhook Id here

local data = {
         ['username'] = 'This will be the name that will be shown';
         ['content'] = 'The message that will be shown';
}

data = http:JSONEncode(data)
http:PostAsync(id, data)

If this helped, please answer this question.

1 comment

0

by id, I mean url

This discussion is preserved as it was. New answers, comments, and votes are closed.