Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
backup.load(backupID, message.guild).then(() => {
// When the backup is loaded, delete them from the server
backup.delete(backupID);
message.author.send(message.language.get("BACKUP_LOAD_SUCCESS"));
}).catch((err) => {
// If an error occurenced