MCPcopy Create free account
hub / github.com/RTByte/rtbyte / buildDisplay

Method buildDisplay

src/commands/Moderator/modHistory.js:96–117  ·  view source on GitHub ↗
(caseEmbedArray)

Source from the content-addressed store, hash-verified

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};

Callers 1

runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected