1. Installation
- Add the flows
- Click the three-dot menu and activate both flows
2. Configuration
- In both flows, change the database and filter column information in the Get Rows by Values block.
- Update the Row Content to use any information you like.
NOTE
The very end of the Row Content should be the value to sort the columns by. You can insert it normally, like in this example:
[[ display_column ]] • [[ sort_column ]]Appears as:
Display Column! • 123
Or if you would like to put the sort column elsewhere (or make it invisible) you can add SORT:[value]
[[ display_column ]] SORT:[[ sort_column ]]Appears as:
Display Column!
TIP
To include a prefix like "1st" or "1" based on the sort order, use the following syntax:
{index} - [[ display_column ]] SORT:[[ sort_column ]]Appears as:
1 - Display Column!
{indexO} - [[ display_column ]] SORT:[[ sort_column ]]Appears as:
1st - Display Column!
3. Run the Command
Run the slash command and it should create configuration global variables. The command should return a link to edit those variables.
pagination.embed_titleSets the title of the embed message
Default:
Example Titlepagination.embed_colorHex color of the embed message.
Default:
FDBD24pagination.embed_footerFooter of the embed. You can use the following variables:
{min}- The index of the first item on the current page{max}- The index of the last item on the current page{total}- The total count of items that matched the filters (across all pages){currentpage}- The current page number{lastpage}- The page number of the last page of items.
Default:
Showing {min}-{max} of {total} • Page {currentpage}/{lastpage}pagination.items_per_pageHow many items to show on each page.
Default:
10pagination.is_ephemeralWhether or not the pagination message should be ephemeral.
Default:
truepagination.sort_orderWhat order to sort the items in. Must be
AscendingorDescending.Default:
Descendingpagination.wrong_user_msgThe message that is sent when someone tries to change the page on someone else's message.
Default:
You can't change the pages on someone else's message!pagination.no_rowsThe message that is sent when there are no rows that match the filters.
Default:
Oops! There's nothing to show!pagination.invalid_pageThe message that shows when a page is invalid.
Default:
Hmm I didn't find anything... maybe try a different page?pagination.show_server_profileWhether or not to show the server name and icon in the embed. Must be
trueorfalse.Default:
true
Click the link sent in the message to go to the Global Variables page and edit these variables. Once you're satisfied, you can test it out by running the command again. Adjust the variables and row content until you're content, and then you're finished!
Happy inventing!
Questions? Bug Reports? Feature Suggestions?
Join our Discord server!