chore(readme): clarify the use of ES modules in readme examples (#10934)

* chore(readme): clarify the use of ES modules in readme examples

resolves #10932

* fix: revert api extractor readme changes
This commit is contained in:
Souji
2025-06-23 21:27:55 +02:00
committed by GitHub
parent cd76c9a47b
commit 615faf5f6f
5 changed files with 10 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ bun add @discordjs/ws
## Example usage
The example uses [ES modules](https://nodejs.org/api/esm.html#enabling).
```ts
import { WebSocketManager, WebSocketShardEvents, CompressionMethod } from '@discordjs/ws';
import { REST } from '@discordjs/rest';