Add fallback for message checking, add link to privacy policy in info

This commit is contained in:
Essem 2022-03-19 23:22:35 -05:00
parent 9e64dfa3c3
commit a438fe26df
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
3 changed files with 9 additions and 5 deletions

View file

@ -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 && status.channel.messages.has(status.id)) await status.delete();
if (status && (status.channel.messages ? status.channel.messages.has(status.id) : await this.client.getMessage(status.channel.id, status.id).catch(() => undefined))) await status.delete();
runningCommands.delete(this.message.author.id);
}