feat(core): add oauth2 api support (#8938)

* feat(core): add oauth2 api support

* chore: remove return tag

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Suneet Tipirneni
2022-12-25 12:53:56 -07:00
committed by GitHub
parent 43ce2a572e
commit 36560c9955
2 changed files with 102 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import { ChannelsAPI } from './channel.js';
import { GuildsAPI } from './guild.js';
import { InteractionsAPI } from './interactions.js';
import { InvitesAPI } from './invite.js';
import { OAuth2API } from './oauth2.js';
import { RoleConnectionsAPI } from './roleConnections.js';
import { StickersAPI } from './sticker.js';
import { ThreadsAPI } from './thread.js';
@@ -16,6 +17,7 @@ export * from './channel.js';
export * from './guild.js';
export * from './interactions.js';
export * from './invite.js';
export * from './oauth2.js';
export * from './roleConnections.js';
export * from './sticker.js';
export * from './thread.js';
@@ -34,6 +36,8 @@ export class API {
public readonly invites: InvitesAPI;
public readonly oauth2: OAuth2API;
public readonly roleConnections: RoleConnectionsAPI;
public readonly stickers: StickersAPI;
@@ -52,6 +56,7 @@ export class API {
this.guilds = new GuildsAPI(rest);
this.invites = new InvitesAPI(rest);
this.roleConnections = new RoleConnectionsAPI(rest);
this.oauth2 = new OAuth2API(rest);
this.stickers = new StickersAPI(rest);
this.threads = new ThreadsAPI(rest);
this.users = new UsersAPI(rest);