Getting the URL and PAGE LIMIT set up
This commit is contained in:
parent
390fff9c42
commit
4aef6545b6
@ -15,7 +15,7 @@ exports.run = async (client, interaction) => {
|
||||
prevEmoji: "◀️", // Previous button emoji
|
||||
nextEmoji: "▶️", // Next 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
|
||||
ephemeral: false, // ephemeral reply
|
||||
prevDescription: "",
|
||||
@ -36,7 +36,7 @@ exports.run = async (client, interaction) => {
|
||||
sendImmediately: false
|
||||
}).then(function (response) {
|
||||
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);
|
||||
|
||||
console.log(boardList)
|
||||
|
Loading…
Reference in New Issue
Block a user