1
0
Fork 0
refactor/models
Bsian 2020-01-04 15:40:00 +00:00
parent dee2e6a820
commit fa5de93c8d
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 4 additions and 2 deletions

View File

@ -60,9 +60,11 @@ export default class Parseall extends Command {
return `${this.client.stores.emojis.success} **${a.username}** Expires in ${time}`; return `${this.client.stores.emojis.success} **${a.username}** Expires in ${time}`;
})); }));
if (final.map((a) => a.value).join('\n').length < 2048) embed.setDescription(final.join('\n')); const result = final.map((a) => a.value);
if (result.join('\n').length < 2048) embed.setDescription(result.join('\n'));
else { else {
const split = this.client.util.splitString(final.join('\n'), 1024); const split = this.client.util.splitString(result.join('\n'), 1024);
split.forEach((s) => embed.addField('\u200B', s)); split.forEach((s) => embed.addField('\u200B', s));
} }