Renommage types any et fix /crack
This commit is contained in:
		| @@ -64,7 +64,7 @@ export default { | ||||
| 			else return | ||||
| 		} | ||||
| 		try { if (!queue.connection) await queue.connect(voiceChannel) } | ||||
| 		catch (error: any) { console.error(error) } | ||||
| 		catch (error: unknown) { console.error(error) } | ||||
|  | ||||
|  | ||||
| 		let guildProfile = await dbGuild.findOne({ guildId: queue.guild.id }) | ||||
| @@ -90,7 +90,7 @@ export default { | ||||
| 			if (!queue.isPlaying()) await queue.node.play() | ||||
| 			let track_source = track.source === 'youtube' ? 'Youtube' : track.source === 'spotify' ? 'Spotify' : 'Inconnu' | ||||
| 			return interaction.followUp(`Chargement de la musique **${track.title}** de **${track.author}** sur **${track_source}**...`) | ||||
| 		} catch (error: any) { console.error(error) } | ||||
| 		} catch (error: unknown) { console.error(error) } | ||||
| 		finally { queue.tasksQueue.release() } | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user