fix(core): instantiate/export role connections

This commit is contained in:
iCrawl
2022-12-16 14:09:51 +01:00
parent 7a61004627
commit 166f742d02

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 { RoleConnectionsAPI } from './roleConnections.js';
import { StickersAPI } from './sticker.js';
import { ThreadsAPI } from './thread.js';
import { UsersAPI } from './user.js';
@@ -15,6 +16,7 @@ export * from './channel.js';
export * from './guild.js';
export * from './interactions.js';
export * from './invite.js';
export * from './roleConnections.js';
export * from './sticker.js';
export * from './thread.js';
export * from './user.js';
@@ -32,6 +34,8 @@ export class API {
public readonly invites: InvitesAPI;
public readonly roleConnections: RoleConnectionsAPI;
public readonly stickers: StickersAPI;
public readonly threads: ThreadsAPI;
@@ -47,6 +51,7 @@ export class API {
this.channels = new ChannelsAPI(rest);
this.guilds = new GuildsAPI(rest);
this.invites = new InvitesAPI(rest);
this.roleConnections = new RoleConnectionsAPI(rest);
this.stickers = new StickersAPI(rest);
this.threads = new ThreadsAPI(rest);
this.users = new UsersAPI(rest);