MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / editDisplay

Function editDisplay

src/utils/display.utils.ts:165–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 }
164
165 async function editDisplay() {
166 if (lastMessage) {
167 try {
168 await lastMessage.edit({
169 embeds: embedBuilders,
170 components: getButtonRow(queue),
171 });
172 }
173 catch {
174 await newDisplay();
175 }
176 }
177 else {
178 await newDisplay();
179 }
180 }
181
182 async function replaceDisplay() {
183 await lastMessage?.delete().catch(() => null);

Callers 1

updateDisplaysFunction · 0.85

Calls 2

getButtonRowFunction · 0.85
newDisplayFunction · 0.85

Tested by

no test coverage detected