Skip to content

Commit 300a596

Browse files
committed
Update request.js
1 parent 0a626b8 commit 300a596

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dist/src/structures/request.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
66
const axios_1 = __importDefault(require("axios"));
7-
exports.default = async (url, options) => {
7+
exports.default = async (url, token, method, options) => {
88
return await axios_1.default
99
.request({
1010
url,
11+
method,
12+
headers: {
13+
"content-type": "application/json",
14+
accept: "application/vnd.github.v3+json",
15+
Authorization: `Bearer ${token}`,
16+
},
1117
...options,
1218
})
1319
.then((response) => {

0 commit comments

Comments
 (0)