-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some fixes to !cases #431
Some fixes to !cases #431
Conversation
Signed-off-by: GitHub <[email protected]>
Signed-off-by: GitHub <[email protected]>
14b8420
to
bb4fdf6
Compare
const title = `Most recent cases ${firstCaseNum}-${lastCaseNum} of ${totalCases} by ${modName}`; | ||
|
||
const embed = { | ||
author: { | ||
name: title, | ||
icon_url: mod instanceof User ? mod.displayAvatarURL() : undefined, | ||
}, | ||
description: lines.join("\n"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make sure this is below 4096 characters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would require some major refactoring of the createPaginatedMessage since it's stateless and we just get a fixed # of cases per page currently, would have to offset the next page by X without being able to save this state anywhere.
Probably just lower cases per page, or implement ZDEV-62
name: title, | ||
icon_url: user instanceof User ? user.displayAvatarURL() : undefined, | ||
}, | ||
description: lines.join("\n"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Signed-off-by: GitHub <[email protected]>
Continued in #454 |
Solves:
lastCaseNum
using page boundary limits on last page rather than total casesFixes ZDEV-45, ZDEV-46