Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[actions] getMedia

Sunciits edited this page Jun 17, 2016 · 4 revisions

getMedia()

Get the current song.


Returns

Media object of the current song or null if no media is playing.


Example

bot.getMedia();
/*
{
    author: 'Freefire',
    cid: 'xxxxxxxx',
    duration: 333,
    format: 'x',
    id: 'xxxxxxxxxx',
    image: 'http://i.ytimg.com/vi/kT3vXUZ4TWc/default.jpg',
    title: 'Dataloss (Darth & Vader Remix)'
}
*/
Clone this wiki locally