
16.8k Views
72 Executions
Discord Webhook
Universal Script π
AuraPublished 25
3 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
a discord webhook that can be used for your scripts. How to get a Discord Webhook 1. Log in to your Discord account and go to the server and channel you want to create a webhook for. 2. Right-click on the channel and select Edit Channel from the context menu. From the left menu, select Integrations, and then click Create Webhook. 3. Enter a name and an avatar for the webhook and copy the webhook URL. 4. Replace YOUR_WEBHOOK_HERE in the code with your own webhook url
Updates
Script edited: Create script
function SendMessage(url, message)
local http = game:GetService("HttpService")
local headers = {
["Content-Type"] = "application/json"
}
local data = {
["content"] = message
}
local body = http:JSONEncode(data)
local response = request({
Url = url,
Method = "POST",
Headers = headers,
Body = body
})
print("Sent")
end
function SendMessageEMBED(url, embed)
local http = game:GetService("HttpService")
local headers = {
["Content-Type"] = "application/json"
}
local data = {
["embeds"] = {
{
["title"] = embed.title,
["description"] = embed.description,
["color"] = embed.color,
["fields"] = embed.fields,
["footer"] = {
["text"] = embed.footer.text
}
}
}
}
local body = http:JSONEncode(data)
local response = request({
Url = url,
Method = "POST",









You kicked me out.
discord why kick me bruh
@323627983 huh??