SimpleDiscord is a module that empowers developers to send messages, including text and embeds, directly to Discord channels, enhancing collaboration and productivity within Roblox Studio projects.
Features
Simple Installation
Do you think it’s hard? Lol.
In-Built Proxies
local WebhookUrl: string = "https://discord.com/api/webhooks/XXXXX/XXXXX"
local WebhookProxy: string = SimpleDiscord.Proxies.Lewi
local Webhook = SimpleDiscord.Webhook:Register(WebhookUrl, WebhookProxy)
Webhook:Send("Test Message with Proxy")
Easy Customisable Embeds
local Embed = SimpleDiscord.Embed:New()
:SetTitle("You title here", "https://your-link.here")
:SetDesc("Your description here.")
:SetColour(SimpleDiscord.Colours.DefaultRed)
:SetFields(
SimpleDiscord.Embed:Field("Field Name 1", "Field Value 1"),
SimpleDiscord.Embed:Field("Field Name 2", "Field Value 2"),
SimpleDiscord.Embed:Field("Field Name 3", "Field Value 3")
)
:SetFooter("You footer text here", "https://your-image.here")
:SetTimestamp(SimpleDiscord.Timestamp.now())
Documentation: soon
Installation
-
Download any release of SimpleDiscord or SimpleDiscord Model (v1.0)
-
Place this module script in ReplicatedStorage
-
Create new script in ServerScriptService
-
Open your created script
-
Write this code:
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- Module
local SimpleDiscord = require(ReplicatedStorage.SimpleDiscord)
local SimplePresets = require(ReplicatedStorage.SimpleDiscord.Presets)
-- Webhook Registering
local WebhookUrl: string = "https://discord.com/api/webhooks/XXXXX/XXXXX"
local WebhookProxy: string = SimpleDiscord.Proxies.Lewi
local Webhook = SimpleDiscord.Webhook:Register(WebhookUrl, WebhookProxy)
-- Send Message from Presets
local Message = SimplePresets["TestPreset"]("lolkekarg")
Webhook:Send(Message)
-
Run game.
-
Final! You sent your first message to Discord from your Roblox game with SimpleDiscord.
Contributing
- Discord: @kyrylo.
- Email: kirilljbicai@gmail.com