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.
COMMUNITY QUESTION
Is there a specific script to use to link a web hook from discord 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.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
by id, I mean url