Longer substr

This commit is contained in:
Daniel Odendahl Jr
2017-08-06 14:56:01 +00:00
parent ec25e6d3d3
commit f7cd98a7eb
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ module.exports = class VocaloidCommand extends Command {
.setAuthor('VocaDB', 'https://i.imgur.com/9Tx9UIc.jpg')
.setTitle(body.items[0].name)
.setURL(`http://vocadb.net/S/${body.items[0].id}`)
.setDescription(body.items[0].lyrics[0] ? body.items[0].lyrics[0].value : 'Unable to find lyrics.')
.setDescription(body.items[0].lyrics[0] ? body.items[0].lyrics[0].value.substr(0, 2048) : 'Unable to find lyrics.')
.setThumbnail(body.items[0].thumbUrl)
.addField(' Artist',
body.items[0].artistString)