Skip to content

Commit

Permalink
chore: Update package.json version to 1.0.6-indev and request method …
Browse files Browse the repository at this point in the history
…signature in Rest class
  • Loading branch information
EvarinDev committed Jul 22, 2024
1 parent b431854 commit 19ef3f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"version": "1.0.5-indev",
"version": "1.0.6-indev",
"description": "Sunday a lavalink wrapper",
"license": "MIT",
"author": "FAYStarNext",
Expand Down
2 changes: 1 addition & 1 deletion src/structures/Rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Rest {
}

/* Sends a GET request to the specified endpoint and returns the response data. */
private async request(method: string, endpoint: string, body?: unknown): Promise<unknown> {
private async request(method: "GET" | "POST" | "PATCH" | "DELETE", endpoint: string, body?: unknown): Promise<unknown> {
const config: AxiosRequestConfig = {
method,
url: this.url + endpoint,
Expand Down

0 comments on commit 19ef3f3

Please sign in to comment.