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); +};