-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDiscord
44 lines (39 loc) · 1.53 KB
/
Discord
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
local Settings = {
InviteCode = "sp4cex"
}
local HttpService = game:GetService("HttpService")
local RequestFunction
if syn and syn.request then
RequestFunction = syn.request
elseif request then
RequestFunction = request
elseif http and http.request then
RequestFunction = http.request
elseif http_request then
RequestFunction = http_request
end
local DiscordApiUrl = "http://127.0.0.1:%s/rpc?v=1"
if not RequestFunction then
return print("Your executor does not support http requests.")
end
for i = 6453, 6464 do
local DiscordInviteRequest = function()
local Request = RequestFunction({
Url = string.format(DiscordApiUrl, tostring(i)),
Method = "POST",
Body = HttpService:JSONEncode({
nonce = HttpService:GenerateGUID(false),
args = {
invite = {code = Settings.InviteCode},
code = Settings.InviteCode
},
cmd = "INVITE_BROWSER"
}),
Headers = {
["Origin"] = "https://discord.com",
["Content-Type"] = "application/json"
}
})
end
spawn(DiscordInviteRequest)
end