@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: "
|
|
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, "
|
|
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",
|