| 94 | } |
| 95 | |
| 96 | async buildDisplay(caseEmbedArray) { |
| 97 | const arrowToLeftEmoji = this.client.emojis.cache.get(this.client.settings.get('emoji.arrowToLeft')); |
| 98 | const arrowLeftEmoji = this.client.emojis.cache.get(this.client.settings.get('emoji.arrowLeft')); |
| 99 | const arrowRightEmoji = this.client.emojis.cache.get(this.client.settings.get('emoji.arrowRight')); |
| 100 | const arrowToRightEmoji = this.client.emojis.cache.get(this.client.settings.get('emoji.arrowToRight')); |
| 101 | const rejectEmoji = this.client.emojis.cache.get(this.client.settings.get('emoji.reject')); |
| 102 | const listEmoji = this.client.emojis.cache.get(this.client.settings.get('emoji.list')); |
| 103 | const display = new RichDisplay() |
| 104 | .setEmojis({ |
| 105 | first: arrowToLeftEmoji.id, |
| 106 | back: arrowLeftEmoji.id, |
| 107 | forward: arrowRightEmoji.id, |
| 108 | last: arrowToRightEmoji.id, |
| 109 | stop: rejectEmoji.id, |
| 110 | jump: listEmoji.id |
| 111 | }); |
| 112 | for (const caseEmbed of caseEmbedArray) { |
| 113 | display.addPage(caseEmbed); |
| 114 | } |
| 115 | |
| 116 | return display; |
| 117 | } |
| 118 | |
| 119 | }; |