Skip to content

Commit

Permalink
Merge pull request #97 from kwattt/main
Browse files Browse the repository at this point in the history
  • Loading branch information
shr0x authored Nov 25, 2024
2 parents 2e24ae3 + 1cb21ce commit 7e0b624
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,22 @@ declare interface DiscordMp {
* ![DISCORD_RICH_PRESENCE](https://wiki.rage.mp/images/c/c4/UpdatedRichPresence.jpg),
*/
update(status: string, state: string): void;


/**
*
* Ask user to authorize your application with Discord. Returns an authorization code.
*
* @param applicationId Application ID
* @returns Promise<string>
*
* @example
* ```js
* const authorizationCode = await mp.discord.requestOAuth('123456789')
* ```
*/

requestOAuth2(applicationId: string): Promise<string>;
}

declare interface ConsoleMp {
Expand Down

0 comments on commit 7e0b624

Please sign in to comment.