mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-10 12:11:35 +02:00
Bump packages
This commit is contained in:
parent
4f0ab9b549
commit
599dbce6e6
15 changed files with 20134 additions and 6734 deletions
|
@ -52,8 +52,8 @@ export default class implements Command {
|
|||
await player.forwardSeek(seekTime);
|
||||
|
||||
await loading.stop();
|
||||
} catch (error) {
|
||||
await loading.stop(errorMsg(error));
|
||||
} catch (error: unknown) {
|
||||
await loading.stop(errorMsg(error as Error));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,7 @@ import {TextChannel, Message} from 'discord.js';
|
|||
import {URL} from 'url';
|
||||
import {TYPES} from '../types';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import {QueuedSong} from '../services/player';
|
||||
import {STATUS} from '../services/player';
|
||||
import {QueuedSong, STATUS} from '../services/player';
|
||||
import PlayerManager from '../managers/player';
|
||||
import {getMostPopularVoiceChannel} from '../utils/channels';
|
||||
import LoadingMessage from '../utils/loading-message';
|
||||
|
@ -111,7 +110,7 @@ export default class implements Command {
|
|||
|
||||
newSongs.push(...convertedSongs);
|
||||
}
|
||||
} catch (_) {
|
||||
} catch (_: unknown) {
|
||||
// Not a URL, must search YouTube
|
||||
const query = args.join(' ');
|
||||
|
||||
|
|
|
@ -63,8 +63,8 @@ export default class implements Command {
|
|||
await player.seek(seekTime);
|
||||
|
||||
await loading.stop();
|
||||
} catch (error) {
|
||||
await loading.stop(errorMsg(error));
|
||||
} catch (error: unknown) {
|
||||
await loading.stop(errorMsg(error as Error));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ export default class implements Command {
|
|||
await player.forward();
|
||||
|
||||
await loader.stop('keep \'er movin\'');
|
||||
} catch (_) {
|
||||
} catch (_: unknown) {
|
||||
await loader.stop(errorMsg('no song to skip to'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ export default class implements Command {
|
|||
await player.back();
|
||||
|
||||
await msg.channel.send('back \'er up\'');
|
||||
} catch (_) {
|
||||
} catch (_: unknown) {
|
||||
await msg.channel.send(errorMsg('no song to go back to'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue