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

No message is being sent to discord even though it printed that it did it?

I am using a proxy to send the message.

function createMessage(player,products)
    print("creating")
    local message = {
        ["embeds"] = {
            ["title"] = "New Purchase!";
            ["description"] = ""..player.Name.." has bought "..products.."";
            ["image"] = {
                ["url"] = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..player.Name.."";
                ["height"] = 100;
                ["width"] = 100
            };
            ["color"] = 23918456;
            ["footer"] = {
                ["text"] = "Coded by Ize_Cubz!"
            }
        }
    }
    print(message.embeds.image.url)
    print(message.embeds.description)
    local sender = http:JSONEncode(message)
    print("encoded")
    pcall(function()
        http:PostAsync(Webhook,sender)
    end)
    print("sent")
end

repeat wait() until game.Players:FindFirstChild("Ize_Cubz")

createMessage(game.Players.Ize_Cubz,"Tester")

It sends every print:

  creating
  http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=Ize_Cubz
  Ize_Cubz has bought Tester
  encoded
  sent

Yet no message in discord, anyone know why?

4 comments

0

Try doing local Success, Result = pcall(http.PostAsync, http, Webhook, sender) print(Success, Result)

0

It prints "true"

0

i dont see any link to discord

0

I hid the link so no one can spam it getting me banned, its sent through the proxy I linked, look it up on the dev fourm if you want to know more about it.

1 answer

At the start of your webhook where it says

"https://discord.com/api" replace with "https://discord.osyr.is/api"

The reason you have to do this is because Discord have blocked Roblox servers from sending requests.

Note: If you spam it the person that owns the proxy will ban you from using it and you will have to make another webhook.

1 comment

0

I am using that, its at the very top of the post.

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