Skip to content

Commit

Permalink
chore: add components util types
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Feb 7, 2022
1 parent 96444d2 commit a1a968d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,13 @@ export class Formatters extends null {
public static userMention: typeof userMention;
}

export type ComponentData = ActionRowComponentData | ButtonComponentData | SelectMenuComponentData;

export class Components extends null {
private constructor();
public static transformJSON(data: ComponentData | APIMessageComponent): APIMessageComponent;
}

export class VoiceChannel extends BaseGuildVoiceChannel {
public readonly speakable: boolean;
public type: ChannelType.GuildVoice;
Expand Down

0 comments on commit a1a968d

Please sign in to comment.