@sonoransoftware/sonoran.js 1.0.28 → 1.0.29

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.
@@ -179,7 +179,7 @@ class REST extends events_1.EventEmitter {
179
179
  apiId: args[0],
180
180
  username: args[1],
181
181
  accId: args[2],
182
- discordId: args[3],
182
+ discord: args[3],
183
183
  uniqueId: args[4],
184
184
  newName: args[5]
185
185
  };
@@ -428,7 +428,7 @@ export interface RESTTypedAPIDataStructs {
428
428
  apiId: string | undefined,
429
429
  username: string | undefined,
430
430
  accId: string | undefined,
431
- discordId: string | undefined,
431
+ discord: string | undefined,
432
432
  uniqueId: string | undefined,
433
433
  newName: string
434
434
  ];
@@ -113,10 +113,10 @@ export declare class CMSManager extends BaseManager {
113
113
  * @param {string} [data.apiId] (Optional) The api id to set the account name.
114
114
  * @param {string} [data.username] (Optional) The username to set the account name.
115
115
  * @param {string} [data.accId] (Optional) The account id to set the account name.
116
- * @param {string} [data.discordId] (Optional) The discord id to set the account name.
116
+ * @param {string} [data.discord] (Optional) The discord id to set the account name.
117
117
  * @param {string} [data.uniqueId] (Optional) The unique id to set the account name.
118
118
  * @param {string} [data.newName] (Optional) The new name to set the account name.
119
119
  * @returns {Promise} Promise object represents if the request was successful with reason for failure if needed.
120
120
  */
121
- setAccountName(apiId: string | undefined, username: string | undefined, accId: string | undefined, discordId: string | undefined, uniqueId: string | undefined, newName: string): Promise<globalTypes.CMSSetAccountNamePromiseResult>;
121
+ setAccountName(apiId: string | undefined, username: string | undefined, accId: string | undefined, discord: string | undefined, uniqueId: string | undefined, newName: string): Promise<globalTypes.CMSSetAccountNamePromiseResult>;
122
122
  }
@@ -270,16 +270,16 @@ class CMSManager extends BaseManager_1.BaseManager {
270
270
  * @param {string} [data.apiId] (Optional) The api id to set the account name.
271
271
  * @param {string} [data.username] (Optional) The username to set the account name.
272
272
  * @param {string} [data.accId] (Optional) The account id to set the account name.
273
- * @param {string} [data.discordId] (Optional) The discord id to set the account name.
273
+ * @param {string} [data.discord] (Optional) The discord id to set the account name.
274
274
  * @param {string} [data.uniqueId] (Optional) The unique id to set the account name.
275
275
  * @param {string} [data.newName] (Optional) The new name to set the account name.
276
276
  * @returns {Promise} Promise object represents if the request was successful with reason for failure if needed.
277
277
  */
278
- async setAccountName(apiId, username, accId, discordId, uniqueId, newName) {
278
+ async setAccountName(apiId, username, accId, discord, uniqueId, newName) {
279
279
  return new Promise(async (resolve, reject) => {
280
280
  var _a;
281
281
  try {
282
- const setAccountNameRequest = await ((_a = this.rest) === null || _a === void 0 ? void 0 : _a.request('SET_ACCOUNT_NAME', apiId, username, accId, discordId, uniqueId, newName));
282
+ const setAccountNameRequest = await ((_a = this.rest) === null || _a === void 0 ? void 0 : _a.request('SET_ACCOUNT_NAME', apiId, username, accId, discord, uniqueId, newName));
283
283
  resolve({ success: true, data: setAccountNameRequest });
284
284
  }
285
285
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonoransoftware/sonoran.js",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
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",
@@ -285,7 +285,7 @@ export class REST extends EventEmitter {
285
285
  apiId: args[0],
286
286
  username: args[1],
287
287
  accId: args[2],
288
- discordId: args[3],
288
+ discord: args[3],
289
289
  uniqueId: args[4],
290
290
  newName: args[5]
291
291
  }
@@ -896,7 +896,7 @@ export interface RESTTypedAPIDataStructs {
896
896
  apiId: string | undefined,
897
897
  username: string | undefined,
898
898
  accId: string | undefined,
899
- discordId: string | undefined,
899
+ discord: string | undefined,
900
900
  uniqueId: string | undefined,
901
901
  newName: string,
902
902
  ],
@@ -233,15 +233,15 @@ export class CMSManager extends BaseManager {
233
233
  * @param {string} [data.apiId] (Optional) The api id to set the account name.
234
234
  * @param {string} [data.username] (Optional) The username to set the account name.
235
235
  * @param {string} [data.accId] (Optional) The account id to set the account name.
236
- * @param {string} [data.discordId] (Optional) The discord id to set the account name.
236
+ * @param {string} [data.discord] (Optional) The discord id to set the account name.
237
237
  * @param {string} [data.uniqueId] (Optional) The unique id to set the account name.
238
238
  * @param {string} [data.newName] (Optional) The new name to set the account name.
239
239
  * @returns {Promise} Promise object represents if the request was successful with reason for failure if needed.
240
240
  */
241
- public async setAccountName(apiId: string | undefined, username: string | undefined, accId: string | undefined, discordId: string | undefined, uniqueId: string | undefined, newName: string ): Promise<globalTypes.CMSSetAccountNamePromiseResult> {
241
+ public async setAccountName(apiId: string | undefined, username: string | undefined, accId: string | undefined, discord: string | undefined, uniqueId: string | undefined, newName: string ): Promise<globalTypes.CMSSetAccountNamePromiseResult> {
242
242
  return new Promise(async (resolve, reject) => {
243
243
  try {
244
- const setAccountNameRequest: any = await this.rest?.request('SET_ACCOUNT_NAME', apiId, username, accId, discordId, uniqueId, newName);
244
+ const setAccountNameRequest: any = await this.rest?.request('SET_ACCOUNT_NAME', apiId, username, accId, discord, uniqueId, newName);
245
245
  resolve({ success: true, data: setAccountNameRequest });
246
246
  } catch (err) {
247
247
  if (err instanceof APIError) {