mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 06:26:08 +00:00

* feat: add support for new Discord application emojis features * feat: add support for new Discord application emojis features * feat: applications emojis routes * chore: switch typings provider * fix: unnecesary type * feat: magic bytes * chore: move api-types * chore: ? * fix: omg npm * chore: apply formatting * fix: for fast merge --------- Co-authored-by: Tony Supremacy <165050835+VanStk@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
32 lines
683 B
TypeScript
32 lines
683 B
TypeScript
import type { ComponentType } from '../types';
|
|
import { BaseComponent } from './BaseComponent';
|
|
|
|
export type APISelectMenuComponentTypes =
|
|
| ComponentType.ChannelSelect
|
|
| ComponentType.MentionableSelect
|
|
| ComponentType.RoleSelect
|
|
| ComponentType.StringSelect
|
|
| ComponentType.UserSelect;
|
|
|
|
export class BaseSelectMenuComponent<T extends APISelectMenuComponentTypes> extends BaseComponent<T> {
|
|
get customId() {
|
|
return this.data.custom_id;
|
|
}
|
|
|
|
get disabed() {
|
|
return this.data.disabled;
|
|
}
|
|
|
|
get max() {
|
|
return this.data.max_values;
|
|
}
|
|
|
|
get min() {
|
|
return this.data.min_values;
|
|
}
|
|
|
|
get placeholder() {
|
|
return this.data.placeholder;
|
|
}
|
|
}
|