Created for Roblox Developers to utlize Discord+'s API to create useful API calls to Discord+ Website & Bot.
No Login or Account required! Quick and easy install.
For example, let’s say we want to fetch a players Discord Id for Whilisting only.
Module Id: 6884651300
Required:
Register an API key here: https://apikeys.discordplus.com
Invite the bot: Authorize
-- Configuration
local Token = "tokenhere" -- Get a token at apikeys.discordplus.com
local Guild = 1234567890 -- Discord/Guild Server ID
Let’s call Discord+ & It’s API
local DiscordPlus = require(6884651300)
local API = DiscordPlus:RequestAPI(Token, Guild)
Now we will use PlayerAdded Function from Players to notice when a Player joins the server.
local Allowed = {295744013406044162}
game.Players.PlayerAdded:Connect(function(Player)
local DiscordId = API:GetDiscordFromId(Player.UserId)
if DiscordId ~= true then
print(Player.Name.."'s discord id is ".. DiscordId)
for i,v in pairs(Allowed) do
if DiscordId == v then
return "Allowed"
end
end
Player:Kick("You are not whitelisted to join")
else
Player:Kick("You are not whitelisted to join")
end
end)
GetDiscordFromId(Roblox UserId)
Returns
Int value
GetBoosterStatus(Discord Id, Guild Id)
Returns
Bool value
- Must have a discord role named Nitro Booster
GetDiscordPermissions(Roblox UserId, Guild Id)
Returns
Table
- Permissions cache is update every message sent by the User
SendMessage(Data)
local Data = {
WebhookId = 123456,
WebhookToken = “abcd”,
Username = “Discord+”,
Message = “Hello World”
}
SendEmbed(Data)
local Data = {
WebhookId = 123456,
WebhookToken = “abcd”,
Username = “Discord+”
Title = “Hello World”,
Description = “Hi Discord!”,
Color = “BLUE”
}
We’re still accepting ideas
HasRoleFromId(Roblox UserId, Guild Id, Role Name or Role Id)
Returns
Bool value
Hold up! Verification! Players are required to link & connect their Roblox Account to Discord+. Follow the screenshot below to link your account.
What’s Discord+ bot for?
Connections Towards Roblox & Discord & Roblox Verification.
Where can I verify my account at?
*Run !connect roblox [usernamehere] in any channel and join Control Panel - Roblox
Can I test the API/Features?
Test them here Control Panel - Roblox. Beta Test features before they are officially released.
Developed with by @pasdalover @verbxtim and @vq9o