aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2022-01-07 12:38:07 -0600
committerMax Isom <[email protected]>2022-01-07 12:38:07 -0600
commit892c06a1109480ba581f99b09d55c929c9a37f0a (patch)
treeb30a84eaa308d88ebb7f1d4a87149b726898d059 /src
parentc1f64486e1574bab7bd275774a3cc3b26b8844e3 (diff)
downloadmuse-892c06a1109480ba581f99b09d55c929c9a37f0a.tar.xz
muse-892c06a1109480ba581f99b09d55c929c9a37f0a.zip
Bump discord.js
Diffstat (limited to 'src')
-rw-r--r--src/commands/queue.ts2
-rw-r--r--src/services/player.ts1
-rw-r--r--src/utils/channels.ts4
3 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/queue.ts b/src/commands/queue.ts
index 1c0735c..58d6377 100644
--- a/src/commands/queue.ts
+++ b/src/commands/queue.ts
@@ -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;
diff --git a/src/services/player.ts b/src/services/player.ts
index 4a226c5..cee59bc 100644
--- a/src/services/player.ts
+++ b/src/services/player.ts
@@ -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,
});
diff --git a/src/utils/channels.ts b/src/utils/channels.ts
index 2d074b4..f4e576a 100644
--- a/src/utils/channels.ts
+++ b/src/utils/channels.ts
@@ -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,
});
}