WebhookLib provides a complete suite of features for sending Discord webhook messages including rich embeds, player notifications, automatic rate limiting, and robust error handling.
-- Minimal setup
local WebhookLib = require(game.ReplicatedStorage.WebhookLib)
local webhook = WebhookLib.new("YOUR_WEBHOOK_URL")
-- Send a message
webhook:SendMessage("Server started!")
-- Send player join notification
game.Players.PlayerAdded:Connect(function(player)
webhook:SendJoinMessage(player)
end)
Built for high-traffic Roblox games with robust error handling, automatic retries, and comprehensive logging.
Optional automatic rate limiting with request queueing and exponential backoff to prevent Discord API limits.
Automatic player join/leave notifications with avatar thumbnails and DataStore-backed join count tracking.
Send beautiful Discord embeds with automatic sanitization, text truncation, and profanity filtering.
Non-blocking operations that won't freeze your game with background processing and smart caching.
Minimal configuration required with smart defaults. Just provide a webhook URL and you're ready to go.
local WebhookLib = require(game.ReplicatedStorage.WebhookLib)
local webhook = WebhookLib.new("https://discord.com/api/webhooks/...")
webhook:SendMessage("Hello Discord!")
webhook:SendEmbed({
title = "Game Statistics",
description = "Current server stats",
color = 0x0099ff,
fields = {
{name = "Players", value = "15", inline = true},
{name = "Uptime", value = "2 hours", inline = true}
}
})
-- Auto join/leave notifications
game.Players.PlayerAdded:Connect(function(player)
webhook:SendJoinMessage(player)
end)
game.Players.PlayerRemoving:Connect(function(player)
webhook:SendLeaveMessage(player)
end)
Check out the comprehensive documentation to learn how to integrate WebhookLib into your Roblox game.
View Documentation