So I'm kind of new to using webhooks and I haven't been able to figure this out so I would like some perspective from others.
Basically what I'm just trying to do is have messages relayed from garry's mod to discord.
I have tried some of the examples I have found online but none of them have seemed to work. The general idea of what I have is something like this
local webhook = "insertmywebhookhere"
hook.Add("PlayerSay", "discord_relay", function(ply, text)
http.Post(webook, {content = text}, nil, function(failed)
print("Something went wrong!")
print(failed)
end)
end)
Any help would be appreciated!
Thanks