feat: add components to /builders (#7195)

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
Suneet Tipirneni
2022-01-12 14:50:08 -05:00
committed by GitHub
parent 37a22e04c2
commit 2bb40fd767
11 changed files with 777 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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;
}