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
@@ -31,7 +31,7 @@ module.exports = class UrbanCommand extends Command {
.setAuthor('Urban Dictionary', 'https://i.imgur.com/fzFuuL7.png')
.setURL(body.list[0].permalink)
.setTitle(body.list[0].word)
.setDescription(body.list[0].definition.substr(0, 2000))
.setDescription(body.list[0].definition.substr(0, 2048))
.addField(' Example',
body.list[0].example.substr(0, 1024) || 'None');
return msg.embed(embed);