mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Longer substr
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user