Skip to content

Commit

Permalink
change Command to only use CommandInteraction as type
Browse files Browse the repository at this point in the history
  • Loading branch information
PyxelCodes committed Nov 13, 2024
1 parent 0ca4517 commit 43c2283
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aetherial",
"version": "1.2.6",
"version": "1.2.8",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/types/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ interface Bot extends Client {
buttons: Cache<Button>;
}

export interface Command<T = Interaction> {
export interface Command {
name: string;
description: string;
data?: SlashCommandBuilder;
dev?: boolean;
run(ICommandProps: ICommandArgument<T>): unknown;
run(ICommandProps: ICommandArgument): unknown;
}

export interface Button {
Expand All @@ -209,8 +209,8 @@ interface IButtonInteraction {
data: string[];
}

export interface ICommandArgument<T = Interaction> {
interaction: T | Interaction;
export interface ICommandArgument {
interaction: CommandInteraction;
client?: Bot;
locale?: string;
edit?: boolean;
Expand Down

0 comments on commit 43c2283

Please sign in to comment.