mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
16 lines
333 B
TypeScript
16 lines
333 B
TypeScript
import type { APIMessageComponent, ComponentType } from 'discord-api-types/v9';
|
|
|
|
/**
|
|
* Represents a discord component
|
|
*/
|
|
export interface Component {
|
|
/**
|
|
* The type of this component
|
|
*/
|
|
readonly type: ComponentType;
|
|
/**
|
|
* Converts this component to an API-compatible JSON object
|
|
*/
|
|
toJSON: () => APIMessageComponent;
|
|
}
|