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.
2 parents 2e24ae3 + 1cb21ce commit 7e0b624Copy full SHA for 7e0b624
packages/client/index.d.ts
@@ -261,6 +261,22 @@ declare interface DiscordMp {
261
* ,
262
*/
263
update(status: string, state: string): void;
264
+
265
266
+ /**
267
+ *
268
+ * Ask user to authorize your application with Discord. Returns an authorization code.
269
270
+ * @param applicationId Application ID
271
+ * @returns Promise<string>
272
273
+ * @example
274
+ * ```js
275
+ * const authorizationCode = await mp.discord.requestOAuth('123456789')
276
+ * ```
277
+ */
278
279
+ requestOAuth2(applicationId: string): Promise<string>;
280
}
281
282
declare interface ConsoleMp {
0 commit comments