mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user