This commit is contained in:
Snowflake107 2021-05-09 22:15:00 +05:45
parent 1437698572
commit c1dacb7843

View file

@ -1,32 +1,32 @@
import { PlayerOptions as DP_OPTIONS } from '../types/types'; import { PlayerOptions as DP_OPTIONS } from '../types/types';
export const PlayerEvents = { export enum PlayerEvents {
BOT_DISCONNECT: 'botDisconnect', BOT_DISCONNECT = 'botDisconnect',
CHANNEL_EMPTY: 'channelEmpty', CHANNEL_EMPTY = 'channelEmpty',
CONNECTION_CREATE: 'connectionCreate', CONNECTION_CREATE = 'connectionCreate',
ERROR: 'error', ERROR = 'error',
MUSIC_STOP: 'musicStop', MUSIC_STOP = 'musicStop',
NO_RESULTS: 'noResults', NO_RESULTS = 'noResults',
PLAYLIST_ADD: 'playlistAdd', PLAYLIST_ADD = 'playlistAdd',
PLAYLIST_PARSE_END: 'playlistParseEnd', PLAYLIST_PARSE_END = 'playlistParseEnd',
PLAYLIST_PARSE_START: 'playlistParseStart', PLAYLIST_PARSE_START = 'playlistParseStart',
QUEUE_CREATE: 'queueCreate', QUEUE_CREATE = 'queueCreate',
QUEUE_END: 'queueEnd', QUEUE_END = 'queueEnd',
SEARCH_CANCEL: 'searchCancel', SEARCH_CANCEL = 'searchCancel',
SEARCH_INVALID_RESPONSE: 'searchInvalidResponse', SEARCH_INVALID_RESPONSE = 'searchInvalidResponse',
SEARCH_RESULTS: 'searchResults', SEARCH_RESULTS = 'searchResults',
TRACK_ADD: 'trackAdd', TRACK_ADD = 'trackAdd',
TRACK_START: 'trackStart' TRACK_START = 'trackStart'
}; };
export const PlayerErrorEventCodes = { export enum PlayerErrorEventCodes {
LIVE_VIDEO: 'LiveVideo', LIVE_VIDEO = 'LiveVideo',
NOT_CONNECTED: 'NotConnected', NOT_CONNECTED = 'NotConnected',
UNABLE_TO_JOIN: 'UnableToJoin', UNABLE_TO_JOIN = 'UnableToJoin',
NOT_PLAYING: 'NotPlaying', NOT_PLAYING = 'NotPlaying',
PARSE_ERROR: 'ParseError', PARSE_ERROR = 'ParseError',
VIDEO_UNAVAILABLE: 'VideoUnavailable', VIDEO_UNAVAILABLE = 'VideoUnavailable',
MUSIC_STARTING: 'MusicStarting' MUSIC_STARTING = 'MusicStarting'
}; };
export const PlayerOptions: DP_OPTIONS = { export const PlayerOptions: DP_OPTIONS = {