The title’s a bit long-winded but that’s what I’m wondering, would it be possible to get a Discord message every time clothing is bought from my group?
I don’t mean from in a game either, just whenever someone buys from the group.
Just to provide some slightly unnecessary code for this, here’s the Webhook script:
local HS = game:GetService("HttpService")
local Remotes = game:GetService("ReplicatedStorage").Remotes
local WebhookURL = "https://discord.com/api/webhooks/(url stuff)"
local Debounce = false
Remotes.WebhookFeedback.Event:Connect(function(purpose, playerName, details)
if Debounce == false then
Debounce = true
local MessageData = {
-- i'm not putting all of this stuff in, you get the gist of it
}
HS:PostAsync(WebhookURL , MessageData)
wait(2)
Debounce = false
end
end)
While we’re still on the topic, what about whenever a player leaves/joins a group? My group’s small so if a webhook was sent every time someone joined it wouldn’t overload, but if it were to get big then I could just send a message every 2 or so hours saying how many joined/left.
Any feedback/help would be appreciated!