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