@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.
|
@@ -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.
|
|
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",
|
|
@@ -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
|
}
|