mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
chore: replace Discord link + add semicolons + typo
This commit is contained in:
parent
ef5321cb90
commit
bc89617de0
@ -11,7 +11,7 @@ npm install @biscuitland/core
|
||||
yarn add @biscuitland/core
|
||||
```
|
||||
|
||||
for further reading join our [Discord](https://discord.gg/zmuvzzEFz2)
|
||||
for further reading join our [Discord](https://discord.gg/zqtPgyaFpV)
|
||||
|
||||
## Most importantly, biscuit is:
|
||||
|
||||
|
@ -12,7 +12,7 @@ npm install @biscuitland/api-types
|
||||
yarn add @biscuitland/api-types
|
||||
```
|
||||
|
||||
for further reading join our [Discord](https://discord.gg/zmuvzzEFz2)
|
||||
for further reading join our [Discord](https://discord.gg/zqtPgyaFpV)
|
||||
|
||||
## Most importantly, api-types is:
|
||||
1:1 type definitions package for the [Discord](https://discord.com/developers/docs/intro) API:
|
||||
|
@ -11,7 +11,7 @@ npm install @biscuitland/rest
|
||||
yarn add @biscuitland/rest
|
||||
```
|
||||
|
||||
for further reading join our [Discord](https://discord.gg/zmuvzzEFz2)
|
||||
for further reading join our [Discord](https://discord.gg/zqtPgyaFpV)
|
||||
|
||||
## Most importantly, biscuit's rest is:
|
||||
A standalone rest library that is yet easy to use and easy to host on a serverless infrastructure, it is meant to be used with biscuit's libraries.
|
||||
|
@ -8,20 +8,20 @@
|
||||
## Install (for [node18](https://nodejs.org/en/download/))
|
||||
|
||||
```sh-session
|
||||
npm install @biscuitland/rest
|
||||
yarn add @biscuitland/rest
|
||||
npm install @biscuitland/ws
|
||||
yarn add @biscuitland/ws
|
||||
```
|
||||
|
||||
for further reading join our [Discord](https://discord.gg/zmuvzzEFz2)
|
||||
for further reading join our [Discord](https://discord.gg/zqtPgyaFpV)
|
||||
|
||||
## Most importantly, biscuit's ws is:
|
||||
A standalone gateway to interface Discord, it is meant to be used with a rest manager to send fetch requests to Discord
|
||||
|
||||
## Example (GW proxy)
|
||||
```ts
|
||||
import { DefaultWsAdapter } from "@biscuitland/ws"
|
||||
import { DefaultRestAdapter } from "@biscuitland/rest"
|
||||
import { GATEWAY_BOT, GatewayIntents } from "@biscuitland/api-types"
|
||||
import { DefaultWsAdapter } from "@biscuitland/ws";
|
||||
import { DefaultRestAdapter } from "@biscuitland/rest";
|
||||
import { GATEWAY_BOT, GatewayIntents } from "@biscuitland/api-types";
|
||||
|
||||
const intents = GatewayIntents.Guilds | GatewayIntents.GuildMessages | GatewayIntents.MessageContent;
|
||||
|
||||
@ -59,10 +59,10 @@ const wsManager = new DefaultWsAdapter({
|
||||
},
|
||||
});
|
||||
|
||||
wsManager.options.gatewayBot = config
|
||||
wsManager.options.lastShardId = wsManager.options.gatewayBot.shards - 1
|
||||
wsManager.options.totalShards = wsManager.options.gatewayBot.shards
|
||||
wsManager.agent.options.totalShards = wsManager.options.gatewayBot.shards
|
||||
wsManager.options.gatewayBot = config;
|
||||
wsManager.options.lastShardId = wsManager.options.gatewayBot.shards - 1;
|
||||
wsManager.options.totalShards = wsManager.options.gatewayBot.shards;
|
||||
wsManager.agent.options.totalShards = wsManager.options.gatewayBot.shards;
|
||||
|
||||
// start a quick bot
|
||||
wsManager.shards();
|
||||
|
Loading…
x
Reference in New Issue
Block a user