Skip to content

Commit 6a9171f

Browse files
committed
Add noBody to suspend and unsuspend functions as they do not return a body.
1 parent 374ee7d commit 6a9171f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pterodactyl.js",
3-
"version": "2.1.0",
3+
"version": "0.0.0",
44
"description": "A wrapper for the Pterodactyl Panel API",
55
"main": "index.js",
66
"types": "src/types/index.d.ts",

release/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pterodactyl.js",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "A wrapper for the Pterodactyl Panel API",
55
"main": "index.js",
66
"types": "types/index.d.ts",

src/lib/client/Server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class Server extends ServerModel {
153153

154154
return new Promise(async (resolve, reject) => {
155155
try {
156-
await this.api.call(`/application/servers/${this.id}/suspend`, 'POST');
156+
await this.api.call(`/application/servers/${this.id}/suspend`, 'POST', null, true);
157157
resolve();
158158
} catch (error) {
159159
reject(error);
@@ -166,7 +166,7 @@ class Server extends ServerModel {
166166

167167
return new Promise(async (resolve, reject) => {
168168
try {
169-
await this.api.call(`/application/servers/${this.id}/unsuspend`, 'POST');
169+
await this.api.call(`/application/servers/${this.id}/unsuspend`, 'POST', null, true);
170170
resolve();
171171
} catch (error) {
172172
reject(error);

0 commit comments

Comments
 (0)