-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary builder imports from message component classes
- Loading branch information
Showing
6 changed files
with
4 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
packages/arcscord/src/base/message_component/base/base_component.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import type { componentTypes } from "#/base/message_component/base/base_component.enum"; | ||
import type { Button } from "#/base/message_component/button/button.class"; | ||
import type { ModalSubmitComponent } from "#/base/message_component/modal_submit/modal_submit.class"; | ||
import type { MessageActionRowComponentBuilder, ModalBuilder } from "@discordjs/builders"; | ||
import type { SelectMenu } from "#/base/message_component/select_menu/select_menu.class"; | ||
|
||
export type ComponentType = keyof typeof componentTypes; | ||
export type Component = Button|ModalSubmitComponent|SelectMenu; | ||
|
||
type ComponentBuilder = MessageActionRowComponentBuilder|ModalBuilder; | ||
|
||
export type ComponentBuilderField<T extends ComponentBuilder = ComponentBuilder> = T | ((...args: unknown[]) => T); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 1 addition & 7 deletions
8
packages/arcscord/src/base/message_component/select_menu/select_menu.class.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
packages/arcscord/src/base/message_component/select_menu/select_menu.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters