@duque.edits/sdk 0.1.0 → 0.1.1

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.
@@ -187,7 +187,7 @@ class Guild {
187
187
  const route = Routes_1.Routes.fields(Routes_1.Routes.guilds.resource(this.id, "prices"), "used");
188
188
  const payload = { price };
189
189
  const response = await this.rest.request({
190
- method: "PATCH",
190
+ method: "POST",
191
191
  url: route,
192
192
  payload,
193
193
  });
@@ -198,7 +198,7 @@ class Guild {
198
198
  }
199
199
  async removePrice(price) {
200
200
  Assertion_1.Assertion.assertNumber(price);
201
- const route = Routes_1.Routes.fields(Routes_1.Routes.guilds.resource(this.id, "price"), "used", price.toString());
201
+ const route = Routes_1.Routes.fields(Routes_1.Routes.guilds.resource(this.id, "prices"), "used", price.toString());
202
202
  const payload = { price };
203
203
  const response = await this.rest.request({
204
204
  method: "DELETE",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duque.edits/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "typings": "./dist/index.d.ts",