discord-slim
Advanced tools
Comparing version 2.0.0-dev.12 to 2.0.0-dev.13
@@ -409,3 +409,3 @@ /// <reference types="node" /> | ||
export declare const OAuth2: { | ||
TokenExchange: (params: { | ||
TokenExchange: (params: ({ | ||
client_id: string; | ||
@@ -421,3 +421,3 @@ client_secret: string; | ||
refresh_token: string; | ||
})) => Promise<{ | ||
})), requestOptions?: RequestOptions | undefined) => Promise<{ | ||
access_token: string; | ||
@@ -424,0 +424,0 @@ token_type: TokenTypes.BEARER; |
@@ -169,5 +169,5 @@ "use strict"; | ||
exports.OAuth2 = { | ||
TokenExchange: (params) => request_1.Request("POST", "/oauth2" + "/token?" + querystring_1.default.stringify(params)), | ||
TokenExchange: (params, requestOptions) => request_1.Request("POST", "/oauth2" + "/token", requestOptions ?? defaultRequestOptions, querystring_1.default.stringify(params)), | ||
GetCurrentApplicationInformation: (requestOptions) => request_1.Request("GET", "/oauth2" + "/applications" + "/@me", requestOptions ?? defaultRequestOptions), | ||
GetCurrentAuthorizationInformation: (requestOptions) => request_1.Request("GET", "/oauth2" + "/@me", requestOptions ?? defaultRequestOptions), | ||
}; |
@@ -534,3 +534,3 @@ import type * as helpers from './helpers'; | ||
name: string; | ||
value?: string | number | boolean | User | Channel | Role; | ||
value?: string | number | boolean; | ||
options?: ApplicationCommandInteractionDataOption[]; | ||
@@ -537,0 +537,0 @@ }; |
{ | ||
"name": "discord-slim", | ||
"version": "2.0.0-dev.12", | ||
"version": "2.0.0-dev.13", | ||
"description": "Lightweight Discord bot API for Node.js.", | ||
@@ -5,0 +5,0 @@ "author": "Hanabishi", |
127593
9