Universal Script πŸ“Œ
16.8k Views
72 Executions

Discord Webhook

Universal Script πŸ“Œ
Aura
AuraPublished 25
3 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

  1. Script edited: Create script

View Raw
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",


Comments

3
Log in to join the conversation. Login
323627983's profile picture
3236279833 years ago(edited)

You kicked me out.

1
323627983's profile picture
3236279833 years ago(edited)

discord why kick me bruh

1
Aura's profile picture
AuraUploader3 years ago(edited)

@323627983 huh??

0

Tags

More universal scripts

See all
Script hub
33.0k
298.1k
Bumped 27 minutes ago
Script hub
23.6k
5.2k
Bumped 27 minutes ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
174
527
Bumped 56 minutes ago
Universal Script πŸ“Œ
1.6k
30.2k
Bumped 58 minutes ago
Script hub
4.1M
558.5k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
28.9k
Bumped 2 hours ago
Key System
Script hub
14.0k
28.5k
Bumped 3 hours ago