mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 09:27:24 +00:00
Fix length of lines in supports
This commit is contained in:
parent
124bddcce0
commit
b1ae562087
1 changed files with 4 additions and 2 deletions
|
@ -42,11 +42,13 @@ module.exports = class Supports extends Command {
|
|||
const supportsResponse = await this.client.lbry.listSupports({
|
||||
accountID: account.accountID, page_size: supportsCount, claimID: givenClaim });
|
||||
console.debug(
|
||||
`Displaying supports for ${account.accountID}${givenClaim ? ` and claimID ${givenClaim}` : ''}, (${supportsCount})`);
|
||||
`Displaying supports for ${
|
||||
account.accountID}${givenClaim ? ` and claimID ${givenClaim}` : ''}, (${supportsCount})`);
|
||||
const supports = (await supportsResponse.json()).result.items;
|
||||
const paginator = new GenericPager(this.client, message, {
|
||||
items: supports,
|
||||
header: `All supports for <@${discordID || message.author.id}>${givenClaim ? ` on claim \`${givenClaim}\`` : ''}`, itemTitle: 'Supports',
|
||||
header: `All supports for <@${discordID || message.author.id}>${
|
||||
givenClaim ? ` on claim \`${givenClaim}\`` : ''}`, itemTitle: 'Supports',
|
||||
display: item => `*lbry://**${item.name}***#\`${item.claim_id}\` (${item.amount} LBC)`
|
||||
});
|
||||
return paginator.start(message.channel.id, message.author.id);
|
||||
|
|
Loading…
Add table
Reference in a new issue