Skip to content

Commit 0a626b8

Browse files
committed
Update createGist.js
1 parent f2cd7da commit 0a626b8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dist/src/createGist.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
55
Object.defineProperty(exports, "__esModule", { value: true });
66
const request_1 = __importDefault(require("./structures/request"));
77
exports.default = async (files, description, token, options) => {
8-
return await (0, request_1.default)("https://api.github.com/gists", {
9-
method: "POST",
10-
headers: {
11-
"content-type": "application/json",
12-
accept: "application/vnd.github.v3+json",
13-
Authorization: `Bearer ${token}`,
14-
},
8+
return await (0, request_1.default)("https://api.github.com/gists", token, "POST", {
159
data: {
1610
description: description,
1711
files: {

0 commit comments

Comments
 (0)