Since Discord has once again blocked Roblox webhooks, I thought it would be a good idea to make a tutorial so you can start using Guilded to send webhooks. This is a tutorial on using the Guilded webhook API, you should not use webhooks for mass logging and you should always read the TOS before using this.
For this you will need a Guilded account, you can create one here: https://www.guilded.gg/
Task One: Creating the webhook
Once you have signed up or logged in, you will notice that you already have a server created by default. You can use this one or make a new one.
Click on your server icon on the left, and then click on the drop-down arrow, and select settings.
From there you will notice a list of buttons on the left, select Webhooks.
Click on Create a webhook
You can select the channel you want the webhook to post in, and change the name and icon.
Copy the webhook link, and click create.
It is advised you do not share this link to anyone as with it they can post unwanted webhooks into your channel
Task Two: Using the webhook in your game
If your game already has a Discord webhook setup you can just switch out the link and it will work as Guilded supports the Discord Webook API.
Make sure you have enable HTTP Requests in your game, you can do this by going to Game Settings > Security.
Make a server script in your game and post the below code inside. You will need to adjust the text and the location of the code to match your game.
Please be advised this code is only to be used as an example, it is highly recommended if you need to send multiple webhooks then you should rate-limit the amount of webhooks you send in accordance to Guilded TOS.
local HttpService = game:GetService("HttpService")
local Data = {
["embeds"] = {
{
title = "Webhook",
description = "I am a webhook",
footer = {
text = "This is a footer"
}
}
}
}
Data = HttpService:JSONEncode(Data)
local Request
pcall(function()
Request = HttpService:PostAsync("URL_HERE", Data)
end)
warn(Request)
Make sure you post the URL you copied into the âURL_HEREâ string.
You can find more information on the webhook API here: https://support.guilded.gg/hc/en-us/articles/360041237354