Discord Webhook not working In-Experience

I am using discord webhook. I have used below key function and it is fine on Studio but when deploy on Experience it does not send any data.

function module.API_Discord(data)
    local data = {
        ["username"] = data.username,
        ["avatar_url"] =data.avatar,
        ["content"] = data.content
    }
    local response = HttpService:RequestAsync({
        Url =url,
        Method = "POST",
        Headers = {
            ["User-Agents"]="Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
            ["Content-Type"] = "application/json",
        },
        Body = HttpService:JSONEncode(data),
    })

    if response.Success then
        print("Webhook message sent successfully!")
    else
        print("Failed to send webhook message:",  response.Body)
    end
end

I believe Discord doesn’t allow usage of their webhook for Roblox, it’s quite a simple fix since there’s a tool/website to fix it.

https://webhook.lewisakura.moe/

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.