Discord API
MbK's MbK's Library update 2y ago

Discord API

favorite12favorites
thumb_up12upvotes
hard_drive 0 MB folder 10 files build Engine v10 history Last update 1069d ago
open_in_new View on sbox.game

About This Package

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.

Media

5
Total Users
5
Total Sessions
1.8 hours
Total Playtime
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
Project Template:
Cs Proj Name: DiscordAPI
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: Mbk.Discord, SANDBOX;ADDON;DEBUG, 1701;1702;1591;, Release, Array, Array
Resources:
Code Package References:
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