Bump discord.js

This commit is contained in:
Max Isom 2022-01-07 12:38:07 -06:00
parent c1f64486e1
commit 892c06a110
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
5 changed files with 145 additions and 205 deletions

View file

@ -63,7 +63,7 @@ export default class implements Command {
footer += ` (${currentlyPlaying.playlist.title})`;
}
embed.setFooter(footer);
embed.setFooter({text: footer});
const queuePageBegin = (queuePage - 1) * PAGE_SIZE;
const queuePageEnd = queuePageBegin + PAGE_SIZE;

View file

@ -53,6 +53,7 @@ export default class {
const conn = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
// @ts-expect-error (see https://github.com/discordjs/voice/issues/166)
adapterCreator: channel.guild.voiceAdapterCreator,
});

View file

@ -42,10 +42,10 @@ export const getMostPopularVoiceChannel = (guild: Guild): [VoiceChannel, number]
for (const [_, channel] of guild.channels.cache) {
if (channel.type === 'GUILD_VOICE') {
const size = getSizeWithoutBots(channel as VoiceChannel);
const size = getSizeWithoutBots(channel);
voiceChannels.push({
channel: channel as VoiceChannel,
channel,
n: size,
});
}