seyfert
Version:
The most advanced framework for discord bots
44 lines (43 loc) • 2.67 kB
TypeScript
import { type ActionRow, type Button, type ChannelSelectMenu, type Container, type File, type MediaGallery, type MentionableSelectMenu, type RoleSelectMenu, type Section, type Separator, type StringSelectMenu, type TextDisplay, type TextInput, type Thumbnail, type UserSelectMenu } from '../builders';
import { type APIActionRowComponent, type APIActionRowComponentTypes, type APIButtonComponent, type APIChannelSelectComponent, type APIContainerComponent, type APIFileComponent, type APIMediaGalleryComponent, type APIMentionableSelectComponent, type APIRoleSelectComponent, type APISectionComponent, type APISeparatorComponent, type APIStringSelectComponent, type APITextDisplayComponent, type APITextInputComponent, type APIThumbnailComponent, type APIUserSelectComponent, ComponentType } from '../types';
export declare class BaseComponent<T extends ComponentType> {
data: APIComponentsMap[T];
constructor(data: APIComponentsMap[T]);
get type(): ComponentType;
toJSON(): APIComponentsMap[T];
toBuilder(): BuilderComponentsMap[T];
}
export interface APIComponentsMap {
[]: APIActionRowComponent<APIActionRowComponentTypes>;
[]: APIButtonComponent;
[]: APIChannelSelectComponent;
[]: APIMentionableSelectComponent;
[]: APIRoleSelectComponent;
[]: APIStringSelectComponent;
[]: APIUserSelectComponent;
[]: APITextInputComponent;
[]: APIFileComponent;
[]: APIThumbnailComponent;
[]: APISectionComponent;
[]: APIContainerComponent;
[]: APIMediaGalleryComponent;
[]: APISeparatorComponent;
[]: APITextDisplayComponent;
}
export interface BuilderComponentsMap {
[]: ActionRow;
[]: Button;
[]: ChannelSelectMenu;
[]: MentionableSelectMenu;
[]: RoleSelectMenu;
[]: StringSelectMenu;
[]: UserSelectMenu;
[]: TextInput;
[]: File;
[]: Thumbnail;
[]: Section;
[]: Container;
[]: MediaGallery;
[]: Separator;
[]: TextDisplay;
}