Discord API

Library
MbK's updated 3y ago 0 MB engine 10
thumb_up 12 open_in_new View on sbox.game
Discord API

Discord API

https://github.com/Mbk10201/-SBOX-Discord-API-/

Supported broadcasting services

- Websocket
- Client websocket

Summary

This library has been made to manage / announce your server
informations to a discord server and vice versa.

Installation (package referencing)

First of all you have to add the library reference to your gamemode
 - S&Box editor →
 - Right click on your gamemode →
 - Project Settings →
 - Packages →
 - Click on + and enter (mbk.discord_api) without ```( )``

Whitelist of URI'S

Now we need to add the api uri's to the whitelist of your gamemode
 - S&Box editor →
 - Right click on your gamemode →
 - Project Settings →
 - Http →
 - Click on + and enter (https://discord.com/api/) also (wss://gateway.discord.gg/) without the ```( )```

Configuration (In-Game)

And finally
 - Open the UI in the game →
 - Go to Token page and set up your token →
 - If you want to use the webhook service instead, go to the event page and configure them by your taste.

Informations


There is already by default game events hooked such as Client Connect & Client Left.

Everything is customisable the UI Settings by pressing 'Slot9' key.

This library is still in massive development so if you encounter any problems, you are free to make a issue.
5
Total Users
5
Total Sessions
1.8 hours
Total Playtime
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: mbk.discord_api
Created: 2023-05-30 18:30 UTC
Updated: 2023-08-25 12:30 UTC
Type: library
Public: Yes
Version: 35954
files: 10
Size: 0.5 MB
Engine Version: 10
Asset Version ID: 35954
Version Created: 2023-08-25 12:30 UTC
Hash: -8144793474978323704
Manifest: Open manifest

more_horiz Additional Properties

Project Template:
Summary: Discord API
Description: Discord API Library thats work like a discord bot [https://github.com/Mbk10201/-SBOX-Discord-API-]. Supporting webhook & websocket All discord gateway events are already implemented, you can retrieve all the event hooks of the library on the github or in the Client.cs file. How to install : S&Box editor -> Right click on your project -> Project Settings -> Packages -> Add new (mbk.discord_api) !! Don't forget to add the discord api url to the HTTP whitelist of your game mode (https://discord.com/api/) There is by default game events hooked such as Client Connect , Client Left & Hotload for debug. Everything is customisable the UI Settings by pressing 'Slot9' key. [WARN] This library is still in beta and its susceptible to change at any time !
Public: true
Replace Tags: discord roleplay facepunch darkrp french map api addon
Compiler: {"RootNamespace":"Mbk.Discord","DefineConstants":"SANDBOX;ADDON;DEBUG","NoWarn":"1701;1702;1591;","ReleaseMode":"Release","References":[],"DistinctReferences":[]}
new_releases Latest Update Aug 25, 2023
Changes on 2023-08-25
35954 Aug 25, 2023
Changes on 2023-08-25
34077 Aug 17, 2023
Changes on 2023-08-17
17875 May 30, 2023
Changes on 5/30/2023
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.