Skip to content

Commit

Permalink
prettier .-.
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake authored and MaddyUnderStars committed Jul 28, 2024
1 parent a887608 commit c41b4f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/util/entities/Message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,12 @@ export interface MessageComponent {

export interface ActionRowComponent extends MessageComponent {
type: MessageComponentType.ActionRow;
components: (ButtonComponent | StringSelectMenuComponent | SelectMenuComponent | TextInputComponent)[];
components: (
| ButtonComponent
| StringSelectMenuComponent
| SelectMenuComponent
| TextInputComponent
)[];
}

export interface ButtonComponent extends MessageComponent {
Expand All @@ -277,7 +282,12 @@ export enum ButtonStyle {
}

export interface SelectMenuComponent extends MessageComponent {
type: MessageComponentType.StringSelect | MessageComponentType.UserSelect | MessageComponentType.RoleSelect | MessageComponentType.MentionableSelect | MessageComponentType.ChannelSelect;
type:
| MessageComponentType.StringSelect
| MessageComponentType.UserSelect
| MessageComponentType.RoleSelect
| MessageComponentType.MentionableSelect
| MessageComponentType.ChannelSelect;
custom_id: string;
channel_types?: number[];
placeholder?: string;
Expand Down
7 changes: 6 additions & 1 deletion src/util/schemas/MessageCreateSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

import { ActionRowComponent, Embed, PollAnswer, PollMedia } from "@spacebar/util";
import {
ActionRowComponent,
Embed,
PollAnswer,
PollMedia,
} from "@spacebar/util";

type Attachment = {
id: string;
Expand Down

0 comments on commit c41b4f6

Please sign in to comment.