()
| 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); |
no test coverage detected