mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: inconsistens impots (#108)
This commit is contained in:
parent
0daec51769
commit
c916e9cb94
@ -1,6 +1,6 @@
|
|||||||
import type { DiscordActionRow } from '@biscuitland/api-types';
|
import type { DiscordActionRow } from '@biscuitland/api-types';
|
||||||
import { MessageComponentTypes } from '@biscuitland/api-types';
|
import { MessageComponentTypes } from '@biscuitland/api-types';
|
||||||
import type { ComponentBuilder } from '../../../../core/src/utils/util';
|
import type { ComponentBuilder } from '@biscuitland/core';
|
||||||
|
|
||||||
export class ActionRowBuilder<T extends ComponentBuilder> {
|
export class ActionRowBuilder<T extends ComponentBuilder> {
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -28,7 +28,6 @@ export class ActionRowBuilder<T extends ComponentBuilder> {
|
|||||||
toJSON(): DiscordActionRow {
|
toJSON(): DiscordActionRow {
|
||||||
return {
|
return {
|
||||||
type: this.type,
|
type: this.type,
|
||||||
// @ts-ignore: socram fix this
|
|
||||||
components: this.components.map(c => c.toJSON()) as DiscordActionRow['components'],
|
components: this.components.map(c => c.toJSON()) as DiscordActionRow['components'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { ButtonStyles, DiscordButtonComponent } from '@biscuitland/api-types';
|
import type { ButtonStyles, DiscordButtonComponent } from '@biscuitland/api-types';
|
||||||
import { MessageComponentTypes } from '@biscuitland/api-types';
|
import { MessageComponentTypes } from '@biscuitland/api-types';
|
||||||
import type { ComponentEmoji } from '../../../../core/src/utils/util';
|
import type { ComponentEmoji } from '@biscuitland/core';
|
||||||
|
|
||||||
export class ButtonBuilder {
|
export class ButtonBuilder {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import type { DiscordSelectOption, DiscordSelectMenuComponent, } from '@biscuitland/api-types';
|
import type { DiscordSelectOption, DiscordSelectMenuComponent, } from '@biscuitland/api-types';
|
||||||
import type { ComponentEmoji } from '../../../../core/src/utils/util';
|
import type { ComponentEmoji } from '@biscuitland/core';
|
||||||
import { MessageComponentTypes } from '@biscuitland/api-types';
|
import { MessageComponentTypes } from '@biscuitland/api-types';
|
||||||
|
|
||||||
export class SelectMenuOptionBuilder {
|
export class SelectMenuOptionBuilder {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user