I have created a simple module to send webhook requests to Discord from Roblox!
Features
Preset colors
Full customization of messages, embeds and author embeds
User Friendly
Backup proxies so you don’t have to worry about Discord blocking Roblox requests
You can grab the module here
Video tutorial here
How it works?
local webhookModule = require(script.WebhookService)
local req = webhookModule:new()
local url = "" -- discord webhook url
req.Title = "Hello"
req.Description = "From WSV4"
req.Color = webhookModule.colors.red
req.Thumbnail = "https://cdn.discordapp.com/attachments/889620733444120597/1079488080882434068/Screenshot_2022-09-03_222450.png"
req.Footer = "Test footer"
req.FooterIcon = "https://cdn.discordapp.com/attachments/889620733444120597/1079488080882434068/Screenshot_2022-09-03_222450.png"
req.TimeStamp = DateTime.now():ToIsoDate()
req.Fields = {
{
['name'] = "Field 1",
['value'] = "Field 1 value",
['inline'] = false
}
}
req:sendEmbed(url)
Outcome
You can also send just messages
local webhookModule = require(script.WebhookService)
local req = webhookModule:new()
local url = "" -- discord webhook url
req.Content = "Hello"
req:sendMessage(url)
Outcome
You can also send author embeds using the avatar headshot URL, since the original one doesn’t work we’ll be using a fork created by @Master3395
local webhookModule = require(script.WebhookService)
local req = webhookModule:new()
local url = "" -- discord webhook url
req.Author = "snawrk"
req.Description = "Is a cool person"
req.Color = webhookModule.colors.yellow
req.AuthorUrl = "https://api.newstargeted.com/roblox/Users/v1/avatar-headshot.php?userid=3586071244&size=150x150&format=Png&isCircular=false"
req.Footer = "Test footer"
req.FooterIcon = "https://cdn.discordapp.com/attachments/889620733444120597/1079488080882434068/Screenshot_2022-09-03_222450.png"
req.TimeStamp = DateTime.now():ToIsoDate()
req.Fields = {
{
['name'] = "Field 1",
['value'] = "Field 1 value",
['inline'] = false
}
}
req:sendAuthorEmbed(url)
Outcome
This is meant to be very simple and user friendly, so if you have any questions or suggestions post them in the replies and I will try to respond to as much as possible!
This module should only be stored on the server.