mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
* feat: components v2 * fix: build * chore: apply formatting * refactor(components): some types * refactor(types): replace TopLevelComponents with APITopLevelComponent in REST * fix: unify components * refactor(TextDisplay): rename content method to setContent for clarity * refactor(builders): add missing builder from component * fix: touche * feat(webhook): webhook params for components v2 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
21 lines
389 B
TypeScript
21 lines
389 B
TypeScript
import type { ComponentType } from '../types';
|
|
import { BaseComponent } from './BaseComponent';
|
|
|
|
export class ThumbnailComponent extends BaseComponent<ComponentType.Thumbnail> {
|
|
get id() {
|
|
return this.data.id;
|
|
}
|
|
|
|
get media() {
|
|
return this.data.media;
|
|
}
|
|
|
|
get description() {
|
|
return this.data.description;
|
|
}
|
|
|
|
get spoiler() {
|
|
return this.data.spoiler;
|
|
}
|
|
}
|