Improve message checking, enable central request handler
This commit is contained in:
parent
f32e5d2ae5
commit
52e038c88e
5 changed files with 17 additions and 16 deletions
|
@ -112,7 +112,7 @@ class ImageCommand extends Command {
|
|||
if (e === "No available servers") return "I can't seem to contact the image servers, they might be down or still trying to start up. Please wait a little bit.";
|
||||
throw e;
|
||||
} finally {
|
||||
if (status && await this.client.getMessage(status.channel.id, status.id).catch(() => undefined)) await status.delete();
|
||||
if (status && status.channel.messages.has(status.id)) await status.delete();
|
||||
runningCommands.delete(this.message.author.id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue