We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a626b8 commit 300a596Copy full SHA for 300a596
dist/src/structures/request.js
@@ -4,10 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
};
5
Object.defineProperty(exports, "__esModule", { value: true });
6
const axios_1 = __importDefault(require("axios"));
7
-exports.default = async (url, options) => {
+exports.default = async (url, token, method, options) => {
8
return await axios_1.default
9
.request({
10
url,
11
+ method,
12
+ headers: {
13
+ "content-type": "application/json",
14
+ accept: "application/vnd.github.v3+json",
15
+ Authorization: `Bearer ${token}`,
16
+ },
17
...options,
18
})
19
.then((response) => {
0 commit comments