UNPKG

jericho-player

Version:

LightWeight Framework for discord.js v14 Music Bots and Radio Bots with fast moderation with commands and no memory leak mode

99 lines (89 loc) 2.28 kB
class invalidGuild extends Error { constructor(message) { super(); this.name = 'invalidGuild'; this.message = message ?? 'Guild/Guild-Snowflake Data is Invalid or got Corrupt'; } } class invalidRequiredSource extends Error { constructor(message) { super(); this.name = 'invalidRequiredSource'; this.message = message ?? 'Invalid or Wrong Required-Source Data for Checking of requested By User Data'; } } class invalidVoiceChannel extends Error { constructor(message) { super(); this.name = 'invalidVoiceChannel'; this.message = message ?? 'Wrong/Invalid/Corrupt Voice Channel Data in the Respective Guild'; } } class invalidQueue extends Error { constructor(message) { super(); this.name = 'invalidQueue'; this.message = message ?? 'Wrong/Invalid/Corrupt Queue Data for the Respective Guild'; } } class destroyedQueue extends Error { constructor(message) { super(); this.name = 'destroyedQueue'; this.message = message ?? "Queue has already Been destroyed and can't be used for queue Methods"; } } class invalidQuery extends Error { constructor(message) { super(); this.name = 'invalidQuery'; this.message = message ?? 'Wrong/Invalid/Corrupt Raw Query Data for the Extractors to fetch Tracks and Playlsit Data'; } } class invalidTracksCount extends Error { constructor(message) { super(); this.name = 'invalidTracksCount'; this.message = message ?? 'Wrong/Invalid/Corrupt Data of Tracks Count for the method'; } } class notPlaying extends Error { constructor(message) { super(); this.name = 'notPlaying'; this.message = message ?? 'No Track is Playing for the requested Operation related to Current Track'; } } class noMemoryLeakModeError extends Error { constructor(message) { super(); this.name = 'noMemoryLeakModeError'; this.message = message ?? 'No Memory Leak mode has been enabled , You can\'t manupulate the volume anymore'; } } module.exports = { invalidGuild, invalidRequiredSource, invalidVoiceChannel, invalidQueue, destroyedQueue, invalidQuery, invalidTracksCount, notPlaying, noMemoryLeakModeError, };