Advertisement
NitroFusions

Webhook

Dec 9th, 2022
938
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. local Webhook = "https://webhook.lewisakura.moe/api/webhooks/1044986554881425418/jmfFdLnKwjFYA64ygZQHXyXNRNRZzk1eYrViV6FmHdZtFnD1XIxfceV0PAX_pKOTiwzL"
  2. local HttpService = game:GetService("HttpService")
  3.  
  4.  
  5.  
  6. local TestMessage = {
  7.     ["name"] = "This is a test",
  8.     ["value"] = "this is a message",
  9.     ["inline"] = true
  10.  
  11. }
  12.  
  13. local Messasge = HttpService:JSONEncode(TestMessage)
  14. print(Webhook)
  15. local Success, Error = pcall(function()
  16.     HttpService:PostAsync(Webhook, Messasge)
  17. end)
  18.  
  19. if Success then
  20.     print("Webhook Request Success!")
  21. else
  22.     print("Webhook Request Failed " .. Error)
  23.    
  24. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement