diff --git a/src/commands/music/play.ts b/src/commands/music/play.ts index 09099a836..65e1d3416 100644 --- a/src/commands/music/play.ts +++ b/src/commands/music/play.ts @@ -3,7 +3,7 @@ * @copyright 2022 */ import { ApplicationCommandOptionType, ChatInputCommandInteraction } from "discord.js"; -import { AudioPlayerStatus, AudioResource, createAudioPlayer, createAudioResource, entersState, getVoiceConnection, joinVoiceChannel, NoSubscriberBehavior, VoiceConnection, VoiceConnectionStatus } from "@discordjs/voice"; +import { AudioPlayerStatus, AudioResource, createAudioPlayer, createAudioResource, DiscordGatewayAdapterCreator, entersState, getVoiceConnection, joinVoiceChannel, NoSubscriberBehavior, VoiceConnection, VoiceConnectionStatus } from "@discordjs/voice"; import { Client, Command, Logger } from "@bastion/tesseract"; import { music } from "@bastion/tesseract/typings/types.js"; import playDL from "@iamtraction/play-dl"; @@ -39,7 +39,7 @@ class PlayCommand extends Command { selfMute: false, guildId: interaction.guildId, channelId: interaction.channelId, - adapterCreator: interaction.guild.voiceAdapterCreator, + adapterCreator: interaction.guild.voiceAdapterCreator as DiscordGatewayAdapterCreator, }); // voice connection events