THANK YOU FOR UNANNOUNCED API CHANGES
This commit is contained in:
parent
8f271a9a4e
commit
f09567b239
2 changed files with 6 additions and 2 deletions
|
@ -17,7 +17,7 @@ exports.run = async (client, message) => {
|
||||||
|
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
embed.setTitle('Now playing')
|
embed.setTitle('Now playing')
|
||||||
embed.setThumbnail(s.video.videoThumbnails[1].url)
|
embed.setThumbnail('https://invidiou.site' + s.video.videoThumbnails[1].url)
|
||||||
embed.setColor(client.embedColour(message))
|
embed.setColor(client.embedColour(message))
|
||||||
embed.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`)
|
embed.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`)
|
||||||
embed.addField('Channel:', s.video.author, true)
|
embed.addField('Channel:', s.video.author, true)
|
||||||
|
|
|
@ -15,8 +15,12 @@ exports.run = async (client, message, args) => {
|
||||||
|
|
||||||
const s = guild.queue[songID]
|
const s = guild.queue[songID]
|
||||||
|
|
||||||
|
if (!s) {
|
||||||
|
return message.channel.send('<:error:466995152976871434> No song was found in the position you specified.')
|
||||||
|
}
|
||||||
|
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
embed.setThumbnail(s.video.videoThumbnails[1].url)
|
embed.setThumbnail('https://invidiou.site' + s.video.videoThumbnails[1].url)
|
||||||
embed.setColor(client.embedColour(message))
|
embed.setColor(client.embedColour(message))
|
||||||
embed.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`)
|
embed.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`)
|
||||||
embed.addField('Channel:', s.video.author, true)
|
embed.addField('Channel:', s.video.author, true)
|
||||||
|
|
Loading…
Reference in a new issue