库

s&box 库列表

Discord API

mbk.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.

更多作品,作者: MbK's

查看创作团队分析 →
01
Admin 缩略图
Adminmbk.admin

No summary provided.

+024小时
4收藏
3好评
53%Terry 评分
02
Vehicles 缩略图
Vehiclesmbk.vehicles

WIP, on big development

+024小时
4收藏
3好评
53%Terry 评分
03
Roleplay API 缩略图
Roleplay APImbk.roleplay_api

No summary provided.

+024小时
3收藏
4好评
60%Terry 评分
06
Taiga UI 缩略图
Taiga UImbk.taiga_ui

No summary provided.

+024小时
1收藏
2好评
43%Terry 评分