glitch-javascript-sdk 2.5.2 → 2.5.3

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.
@@ -53,5 +53,9 @@ declare class DiscordMarketplace {
53
53
  * Resubmit a post after making requested changes (Game Developer).
54
54
  */
55
55
  static resubmitOrder<T>(id: string): AxiosPromise<Response<T>>;
56
+ /**
57
+ * Get available text channels for a specific Discord listing.
58
+ */
59
+ static getChannels<T>(id: string): AxiosPromise<Response<T>>;
56
60
  }
57
61
  export default DiscordMarketplace;
package/dist/esm/index.js CHANGED
@@ -16357,6 +16357,7 @@ var DiscordMarketplaceRoute = /** @class */ (function () {
16357
16357
  rejectOrder: { url: '/discord-marketplace/orders/{id}/reject', method: HTTP_METHODS.POST },
16358
16358
  requestChanges: { url: '/discord-marketplace/orders/{id}/request-changes', method: HTTP_METHODS.POST },
16359
16359
  resubmitOrder: { url: '/discord-marketplace/orders/{id}/resubmit', method: HTTP_METHODS.POST },
16360
+ getChannels: { url: '/discord-marketplace/listings/{id}/channels', method: HTTP_METHODS.GET },
16360
16361
  };
16361
16362
  return DiscordMarketplaceRoute;
16362
16363
  }());
@@ -16436,6 +16437,12 @@ var DiscordMarketplace = /** @class */ (function () {
16436
16437
  DiscordMarketplace.resubmitOrder = function (id) {
16437
16438
  return Requests.processRoute(DiscordMarketplaceRoute.routes.resubmitOrder, {}, { id: id });
16438
16439
  };
16440
+ /**
16441
+ * Get available text channels for a specific Discord listing.
16442
+ */
16443
+ DiscordMarketplace.getChannels = function (id) {
16444
+ return Requests.processRoute(DiscordMarketplaceRoute.routes.getChannels, {}, { id: id });
16445
+ };
16439
16446
  return DiscordMarketplace;
16440
16447
  }());
16441
16448