Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #57 from greencoast-studios/develop
Browse files Browse the repository at this point in the history
Version 2.2.2
  • Loading branch information
moonstar-x authored Jan 23, 2022
2 parents fd13b1e + 46d1529 commit b1d2cbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@greencoast/discord.js-extended",
"version": "2.2.1",
"version": "2.2.2",
"description": "An utility to facilitate the repetitive tasks when creating discord bots. Used by Greencoast Studios.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion src/classes/locale/Localizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ class Localizer {
return Promise.resolve();
}

return this.client.dataProvider.delete(guild, this.options.dataProviderKey || 'locale');
return this.client.dataProvider.delete(guild, this.options.dataProviderKey || 'locale')
.catch((error) => {
this.client.emit('warn', `Could not delete locale settings for ${guild.id} from data provider.`);
this.client.emit('error', error);
});
}

/**
Expand Down

0 comments on commit b1d2cbf

Please sign in to comment.