Getting the URL and PAGE LIMIT set up

This commit is contained in:
Raven Scott 2022-01-24 19:21:34 +00:00
parent 390fff9c42
commit 4aef6545b6

View File

@ -15,7 +15,7 @@ exports.run = async (client, interaction) => {
prevEmoji: "◀️", // Previous button emoji prevEmoji: "◀️", // Previous button emoji
nextEmoji: "▶️", // Next button emoji nextEmoji: "▶️", // Next button emoji
lastEmoji: "⏭", // Last button emoji lastEmoji: "⏭", // Last button emoji
limit: 2, // number of entries per page limit: process.env.PER_PAGE, // number of entries per page
idle: 30000, // idle time in ms before the pagination closes idle: 30000, // idle time in ms before the pagination closes
ephemeral: false, // ephemeral reply ephemeral: false, // ephemeral reply
prevDescription: "", prevDescription: "",
@ -36,7 +36,7 @@ exports.run = async (client, interaction) => {
sendImmediately: false sendImmediately: false
}).then(function (response) { }).then(function (response) {
let data = response.body.result let data = response.body.result
const pusherFunc = board=>boardList.push({name:"Project Name", value:board.name + "\nID: " + board.id + "\n" + "https://board.grwh.work/board/" + board.id}); const pusherFunc = board=>boardList.push({name:"Project Name", value:board.name + "\nID: " + board.id + "\n" + "https://" + process.env.ROOT_DOMAIN + "/board/" + board.id});
data.forEach(pusherFunc); data.forEach(pusherFunc);
console.log(boardList) console.log(boardList)