From 84bb6e56b44f856e34140f263a77544e79dca347 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 5 Mar 2023 13:51:57 +0100 Subject: [PATCH] re add required events --- src/events/player/connectionError.ts | 7 +++++++ src/events/player/error.ts | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/events/player/connectionError.ts create mode 100644 src/events/player/error.ts diff --git a/src/events/player/connectionError.ts b/src/events/player/connectionError.ts new file mode 100644 index 0000000..892eee7 --- /dev/null +++ b/src/events/player/connectionError.ts @@ -0,0 +1,7 @@ +import { GuildQueue } from "discord-player"; +import { Metadata } from "../../utils/metadata"; + +/** https://discord-player.js.org/docs/main/master/typedef/PlayerEvents */ +export default (_: GuildQueue, error: Error) => { + console.error(error); +}; diff --git a/src/events/player/error.ts b/src/events/player/error.ts new file mode 100644 index 0000000..892eee7 --- /dev/null +++ b/src/events/player/error.ts @@ -0,0 +1,7 @@ +import { GuildQueue } from "discord-player"; +import { Metadata } from "../../utils/metadata"; + +/** https://discord-player.js.org/docs/main/master/typedef/PlayerEvents */ +export default (_: GuildQueue, error: Error) => { + console.error(error); +};