mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
feat: polls (#10185)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import { InteractionsAPI } from './interactions.js';
|
||||
import { InvitesAPI } from './invite.js';
|
||||
import { MonetizationAPI } from './monetization.js';
|
||||
import { OAuth2API } from './oauth2.js';
|
||||
import { PollAPI } from './poll.js';
|
||||
import { RoleConnectionsAPI } from './roleConnections.js';
|
||||
import { StageInstancesAPI } from './stageInstances.js';
|
||||
import { StickersAPI } from './sticker.js';
|
||||
@@ -23,6 +24,7 @@ export * from './interactions.js';
|
||||
export * from './invite.js';
|
||||
export * from './monetization.js';
|
||||
export * from './oauth2.js';
|
||||
export * from './poll.js';
|
||||
export * from './roleConnections.js';
|
||||
export * from './stageInstances.js';
|
||||
export * from './sticker.js';
|
||||
@@ -48,6 +50,8 @@ export class API {
|
||||
|
||||
public readonly oauth2: OAuth2API;
|
||||
|
||||
public readonly poll: PollAPI;
|
||||
|
||||
public readonly roleConnections: RoleConnectionsAPI;
|
||||
|
||||
public readonly stageInstances: StageInstancesAPI;
|
||||
@@ -69,8 +73,9 @@ export class API {
|
||||
this.guilds = new GuildsAPI(rest);
|
||||
this.invites = new InvitesAPI(rest);
|
||||
this.monetization = new MonetizationAPI(rest);
|
||||
this.roleConnections = new RoleConnectionsAPI(rest);
|
||||
this.oauth2 = new OAuth2API(rest);
|
||||
this.poll = new PollAPI(rest);
|
||||
this.roleConnections = new RoleConnectionsAPI(rest);
|
||||
this.stageInstances = new StageInstancesAPI(rest);
|
||||
this.stickers = new StickersAPI(rest);
|
||||
this.threads = new ThreadsAPI(rest);
|
||||
|
||||
Reference in New Issue
Block a user