@sonoransoftware/sonoran.js 1.0.58 → 1.0.59

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.
@@ -204,6 +204,7 @@ export interface CADIdentsToGroupStruct {
204
204
  serverId: number;
205
205
  identIds: number[];
206
206
  groupName: string;
207
+ account?: string;
207
208
  }
208
209
  export interface CADBlipStruct {
209
210
  id: number;
@@ -398,6 +398,9 @@ class CADManager extends BaseManager_1.BaseManager {
398
398
  if (typeof entry.groupName !== 'string') {
399
399
  throw new Error(`entries[${index}].groupName must be a string (use '' to clear).`);
400
400
  }
401
+ if (entry.account !== undefined && typeof entry.account !== 'string') {
402
+ throw new Error(`entries[${index}].account must be a string when provided.`);
403
+ }
401
404
  });
402
405
  return this.executeCadRequest('IDENTS_TO_GROUP', payload);
403
406
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonoransoftware/sonoran.js",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Sonoran.js is a library that allows you to interact with the Sonoran CAD and Sonoran CMS API. Based off of and utilizes several Discord.js library techniques for ease of use.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -884,6 +884,7 @@ export interface CADIdentsToGroupStruct {
884
884
  serverId: number;
885
885
  identIds: number[];
886
886
  groupName: string;
887
+ account?: string;
887
888
  }
888
889
 
889
890
  export interface CADBlipStruct {
@@ -424,6 +424,9 @@ export class CADManager extends BaseManager {
424
424
  if (typeof entry.groupName !== 'string') {
425
425
  throw new Error(`entries[${index}].groupName must be a string (use '' to clear).`);
426
426
  }
427
+ if (entry.account !== undefined && typeof entry.account !== 'string') {
428
+ throw new Error(`entries[${index}].account must be a string when provided.`);
429
+ }
427
430
  });
428
431
  return this.executeCadRequest('IDENTS_TO_GROUP', payload);
429
432
  }