@zennify/sdk-js 1.0.0-beta.29 → 1.0.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.0.0-beta.29",
3
+ "version": "1.0.0-beta.30",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
package/src/errors.ts CHANGED
@@ -97,6 +97,10 @@ export interface APIErrors {
97
97
  received: string
98
98
  };
99
99
  'INVALID_STORE_NAME': {};
100
+ /// AUTOROLE
101
+ 'UNKNOWN_AUTOROLE_RULE': {},
102
+ 'AUTOROLE_RULE_ALREADY_EXISTS': {};
103
+ 'YOU_REACHED_THE_AUTOROLE_RULE_LIMIT': {}
100
104
  /// bot errors
101
105
  'WAIT_OR_TRY_AGAIN_WITH_ANOTHER_DISCORD_BOT': {};
102
106
  'INVALID_DISCORD_BOT_TOKEN': {};
@@ -239,6 +239,18 @@
239
239
  "name": "Invalid store name",
240
240
  "message": "The name must be up to 50 characters"
241
241
  },
242
+ "UNKNOWN_AUTOROLE_RULE": {
243
+ "name": "Unknown Discord autorole rule",
244
+ "message": "Try to create a new rule"
245
+ },
246
+ "AUTOROLE_RULE_ALREADY_EXISTS": {
247
+ "name": "An automatic role rule already exists for this role!",
248
+ "message": "Use the update route."
249
+ },
250
+ "YOU_REACHED_THE_AUTOROLE_RULE_LIMIT": {
251
+ "name": "You have reached the limit of automatic roles!",
252
+ "message": "Try deleting the ones you no longer use."
253
+ },
242
254
  "WAIT_OR_TRY_AGAIN_WITH_ANOTHER_DISCORD_BOT": {
243
255
  "name": "Wait or try again with another BOT",
244
256
  "message": "Your actions are being limited"
@@ -239,6 +239,18 @@
239
239
  "name": "Nome de loja inválido",
240
240
  "message": "O nome deve ter até 50 caracteres"
241
241
  },
242
+ "UNKNOWN_AUTOROLE_RULE": {
243
+ "name": "Regra de cargo automático desconhecida",
244
+ "message": "Tente criar uma nova regra"
245
+ },
246
+ "AUTOROLE_RULE_ALREADY_EXISTS": {
247
+ "name": "Já existe uma regra de cargo automático pra esse cargo!",
248
+ "message": "Use a rota de alteração."
249
+ },
250
+ "YOU_REACHED_THE_AUTOROLE_RULE_LIMIT": {
251
+ "name": "Você já atingiu o limite de cargos automáticos!",
252
+ "message": "Tente apagar os que você não usa mais"
253
+ },
242
254
  "WAIT_OR_TRY_AGAIN_WITH_ANOTHER_DISCORD_BOT": {
243
255
  "name": "Aguarde ou tente novamente com outro BOT",
244
256
  "message": "Sua ações estão sendo limitadas"
package/types/errors.d.ts CHANGED
@@ -86,6 +86,9 @@ export interface APIErrors {
86
86
  received: string;
87
87
  };
88
88
  'INVALID_STORE_NAME': {};
89
+ 'UNKNOWN_AUTOROLE_RULE': {};
90
+ 'AUTOROLE_RULE_ALREADY_EXISTS': {};
91
+ 'YOU_REACHED_THE_AUTOROLE_RULE_LIMIT': {};
89
92
  'WAIT_OR_TRY_AGAIN_WITH_ANOTHER_DISCORD_BOT': {};
90
93
  'INVALID_DISCORD_BOT_TOKEN': {};
91
94
  'DISABLE_REQUIRE_CODE_GRANT': {};