Skip to content

Commit 444e2c9

Browse files
committed
docs: add intercepting audio stream guide
1 parent 52bc7f4 commit 444e2c9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

apps/website/content/docs/common-actions/playing_raw_resource.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const resource = createAudioResource(...); // create audio resource
1313
await player.play(resource); // play that resource
1414
```
1515

16-
<Callout type="warning">
16+
<Callout type="warn">
1717
If you do not plan on replaying the track, it is recommended to clear the
1818
assigned resource from the track to avoid memory leaks.
1919
</Callout>

apps/website/content/docs/creating-a-music-bot/10_creating_queue_command.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export async function execute(interaction) {
9494

9595
</Tabs>
9696

97-
<Callout type="warning">
97+
<Callout type="warn">
9898
In the example above, we are only displaying the current track and the next 5
9999
upcoming tracks to keep things minimal and easy to understand. You can modify
100100
the number of upcoming tracks to display by changing the `slice` method

apps/website/content/docs/intercepting-streams/intercepting-audio-resource-stream.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ await player.play(channel, query, {
3232

3333
Interceptor will always execute **after** the `OnAfterCreateStream` hook.
3434

35-
<!-- prettier-ignore -->
3635
```js
3736
const interceptor = player.createStreamInterceptor({
3837
async shouldIntercept(queue, track, format, stream) {

0 commit comments

Comments
 (0)