coisa rapida
com o Queue.All consigo acessar as informações das musicas que ainda estao na fila , porem não da pra acessar com ela as informaçoes da musica que ja esta sendo tocada, como posso acessar isso?
MoonPlayer {
guildId: '990369410344701964',
textChannel: '1070454617294516284',
voiceChannel: '1057326555937906859',
playing: true,
connected: true,
paused: null,
loop: null,
current: {
position: 19980,
title: 'Olivia Rodrigo - All I Want (Official Video)',
author: 'DisneyMusicVEVO',
url: 'https://www.youtube.com/watch?v=OOgvDiXl6hA',
identifier: 'OOgvDiXl6hA',
duration: 185000,
isSeekable: true,
track: 'QAAAlQIALE9saXZpYSBSb2RyaWdvIC0gQWxsIEkgV2FudCAoT2ZmaWNpYWwgVmlkZW8pAA9EaXNuZXlNdXNpY1ZFVk8AAAAAAALSqAALT09ndkRpWGw2aEEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1PT2d2RGlYbDZoQQAHeW91dHViZQAAAAAAAAAA',
source: 'youtube',
requester: undefined,
thumbnail: 'https://img.youtube.com/vi/OOgvDiXl6hA/sddefault.jpg'
},
queue: MoonQueue { guildId: '990369410344701964' },
filters: MoonFilters {
guildId: '990369410344701964',
status: {
nightcore: false,
vaporweve: false,
bassboost: false,
pop: false,
soft: false,
treblebass: false,
eightD: false,
karaoke: false,
vibrato: false,
tremolo: false,
custom: null
}
}
}volume(percent) {
let queue = db.get(`queue.${this.guildId}`)
if(typeof percent !== 'string' && typeof percent !== 'number') throw new TypeError(`[ MoonlinkJs ]: the percentage must be in string and numbers format.`)
if(!queue) throw new TypeError(`[ MoonlinkJs ]: queue is empty.`)
this.#sendWs({
op: 'volume'
, guildId: this.guildId
, volume: percent
})
}