Skip to content

Commit

Permalink
revert accidental component change
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow committed Sep 3, 2024
1 parent 2bdc7f3 commit 47723c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
12 changes: 11 additions & 1 deletion packages/carbon/src/abstracts/BaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import {
ApplicationCommandType,
type RESTPostAPIApplicationCommandsJSONBody
} from "discord-api-types/v10"
import { ApplicationIntegrationType, InteractionContextType } from "../index.js"
import {
ApplicationIntegrationType,
type BaseComponent,
InteractionContextType
} from "../index.js"

/**
* Represents the base data of a command that the user creates
Expand Down Expand Up @@ -46,6 +50,12 @@ export abstract class BaseCommand {
InteractionContextType.PrivateChannel
]

/**
* All the components that the command is able to use.
* You mount these here so the handler can access them
*/
components?: BaseComponent[] = []

/**
* All the paginators that the command is able to use.
* You mount these here so the handler can access them
Expand Down
9 changes: 1 addition & 8 deletions packages/carbon/src/classes/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import {
import {
type AutocompleteInteraction,
BaseCommand,
type CommandInteraction,
type BaseComponent
type CommandInteraction
} from "../index.js"

export type CommandOptions = APIApplicationCommandBasicOption[]
Expand All @@ -26,12 +25,6 @@ export abstract class Command extends BaseCommand {
*/
type: ApplicationCommandType = ApplicationCommandType.ChatInput

/**
* All the components that the command is able to use.
* You mount these here so the handler can access them
*/
components?: BaseComponent[] = []

/**
* The function that is called when the command is ran
* @param interaction The interaction that triggered the command
Expand Down

0 comments on commit 47723c7

Please sign in to comment.