---
title: "Discord API - s&box library"
description: "Discord API\n\nhttps://github.com/Mbk10201/-SBOX-Discord-API-/\n\nSupported broadcasting services\n\n- Websocket\n- Client websocket\n\nSummary\n\nThis library has been made to manage / announce your server\ninformations to a discord server and vice versa.\n\nInstallation (package referencing)\n\nFirst of all you have to add the library reference to your gamemode\n - S&Box editor →\n - Right click on your gamemode →\n - Project Settings →\n - Packages →\n - Click on + and enter (mbk.discord_api) without ```( )``\n\nWhitelist of URI'S\n\nNow we need to add the api uri's to the whitelist of your gamemode\n - S&Box editor →\n - Right click on your gamemode →\n - Project Settings →\n - Http →\n - Click on + and enter (https://discord.com/api/) also (wss://gateway.discord.gg/) without the ```( )```\n\nConfiguration (In-Game)\n\nAnd finally\n - Open the UI in the game →\n - Go to Token page and set up your token →\n - If you want to use the webhook service instead, go to the event page and configure them by your taste.\n\nInformations\n\nThere is already by default game events hooked such as Client Connect & Client Left.\n\nEverything is customisable the UI Settings by pressing 'Slot9' key.\n\nThis library is still in massive development so if you encounter any problems, you are free to make a issue."
canonical: "https://sbox.watch/libraries/mbk/discord_api/"
generated_at: "2026-07-23T00:06:23.743Z"
---

# Discord API

No summary provided.

- Type: library
- Ident: mbk.discord_api
- Creator: MbK's
- Canonical: https://sbox.watch/libraries/mbk/discord_api/
- Markdown: https://sbox.watch/libraries/mbk/discord_api.md
- sbox.game: https://sbox.game/mbk/discord_api/
- Generated: 2026-07-23T00:06:23.743Z

## Stats

- 24h momentum: +0
- Terry score: 82%
- Favorites: 12
- Upvotes: 12
- Downvotes: 0
- Updated: Aug 25, 2023
- Created: May 30, 2023
- Size: 498.6 KB
- Files: 10
- Tags: 

## Description

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.



## More by MbK's

| Package | Ident | Players | Favorites | Upvotes | Score | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| Admin | mbk.admin | 0 | 4 | 3 | 53% | https://sbox.watch/libraries/mbk/admin.md |
| Vehicles | mbk.vehicles | 0 | 4 | 3 | 53% | https://sbox.watch/libraries/mbk/vehicles.md |
| Roleplay API | mbk.roleplay_api | 0 | 3 | 4 | 60% | https://sbox.watch/libraries/mbk/roleplay_api.md |
| Box Icons | mbk.box_icons | 0 | 2 | 4 | 60% | https://sbox.watch/libraries/mbk/box_icons.md |
| Cool Icons | mbk.cool_icons | 0 | 2 | 4 | 60% | https://sbox.watch/libraries/mbk/cool_icons.md |
| Taiga UI | mbk.taiga_ui | 0 | 1 | 2 | 43% | https://sbox.watch/libraries/mbk/taiga_ui.md |
