aboutsummaryrefslogtreecommitdiff
path: root/src/utils/loading-message.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/loading-message.ts')
-rw-r--r--src/utils/loading-message.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/utils/loading-message.ts b/src/utils/loading-message.ts
index dd3e9b9..115aff2 100644
--- a/src/utils/loading-message.ts
+++ b/src/utils/loading-message.ts
@@ -60,10 +60,16 @@ export default class {
}
async stop(str = 'u betcha'): Promise<Message> {
+ const wasAlreadyStopped = this.isStopped;
+
this.isStopped = true;
if (str) {
- await Promise.all([this.msg.reactions.removeAll(), this.msg.edit(str)]);
+ if (wasAlreadyStopped) {
+ await this.msg.edit(str);
+ } else {
+ await Promise.all([this.msg.reactions.removeAll(), this.msg.edit(str)]);
+ }
} else {
await this.msg.reactions.removeAll();
}