@seedcord/gateway 0.9.0-next.0 → 0.9.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.mts +190 -216
- package/dist/index.mjs +504 -939
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ pnpm add @seedcord/gateway discord.js @discordjs/builders envapt
|
|
|
38
38
|
pnpm add -D seedcord vite typescript
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
`discord.js`, `envapt`, and `typescript` are peer dependencies. `seedcord` is the CLI that runs the bot in dev and builds it.
|
|
41
|
+
`discord.js`, `@discordjs/builders`, `envapt`, and `typescript` are peer dependencies. `seedcord` is the CLI that runs the bot in dev and builds it.
|
|
42
42
|
|
|
43
43
|
## Usage
|
|
44
44
|
|
|
@@ -65,7 +65,7 @@ export default new Seedcord({
|
|
|
65
65
|
|
|
66
66
|
Read your environment through [envapt](https://envapt.materwelon.dev), the way `TESTING_GUILD_IDS` is read above. seedcord loads your `.env` files into envapt, and reads `DISCORD_BOT_TOKEN` from it too. envapt also reads your shell's variables, while `process.env` misses everything in your `.env` files.
|
|
67
67
|
|
|
68
|
-
A file in `events/` reacts to any discord.js client event. Its handler
|
|
68
|
+
A file in `events/` reacts to any discord.js client event. Its handler receives the same arguments discord.js passes to `client.on()`:
|
|
69
69
|
|
|
70
70
|
```ts
|
|
71
71
|
import { EventHandler, RegisterEvent } from '@seedcord/gateway';
|