Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix: fix something ig
Browse files Browse the repository at this point in the history
  • Loading branch information
Qreepex committed Jun 12, 2022
1 parent 73a1989 commit a7b28b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eazyautodelete/eazyautodelete-core",
"version": "1.4.1",
"version": "1.5.1",
"description": "🧰 Core Package used by the EazyAutodelete Discord Bot",
"main": "build/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export { default as Bot } from "./structures/Bot";
export { default as ButtonArgs } from "./structures/ButtonArgs";
export { default as CommandArgs } from "./structures/CommandArgs";
export { default as Command } from "./structures/Command";
export { default as CommandButton } from "./structures/CommandButton";
export { default as CommandMessage } from "./structures/CommandMessage";
export { default as CommandResponseHandler } from "./structures/discord/CommandResponseHandler";
export { default as Logger } from "./structures/Logger";
Expand Down
17 changes: 9 additions & 8 deletions src/structures/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ import {
MessageActionRow,
MessageButton,
SelectMenuInteraction,
ButtonInteraction,
ApplicationCommandOptionChoiceData,
} from "discord.js";
import { CommandConfig, CommandData, CommandHelp, CommandOptions } from "../";
import Bot from "./Bot";
import ButtonArgs from "./ButtonArgs";
import Logger from "./Logger";
import CommandArgs from "./CommandArgs";
import CommandButton from "./CommandButton";
import CommandMessage from "./CommandMessage";
import Args from "./CommandArgs";

export default class Command {
client: Bot;
Expand Down Expand Up @@ -100,16 +101,16 @@ export default class Command {
return this.urlButton("https://docs.eazyautodelete.xyz/" + url, "Help", "❓");
}

async run(client: Bot, interaction: CommandMessage, args: Args): Promise<void> {
interaction.error("An Error occured - Please contact staff: Core.Command.run");
async run(client: Bot, message: CommandMessage, args: CommandArgs): Promise<void> {
message.error("An Error occured - Please contact staff: Core.Command.run");

return this.Logger.warn(
"Ended up in command.js [ " +
this.config.name +
" - " +
interaction.guild?.id +
message.guild?.id +
" - " +
interaction.channel?.id +
message.channel?.id +
" ]"
);
}
Expand All @@ -132,9 +133,9 @@ export default class Command {
return;
}

async buttonHandler(interaction: ButtonInteraction): Promise<void> {
async buttonHandler(button: CommandButton, args: ButtonArgs): Promise<void> {
this.Logger.warn(
"Ended up in command.js [ " + this.config.name + " - " + interaction.id + " ]"
"Ended up in command.js [ " + this.config.name + " - " + button.id + " ]"
);

return;
Expand Down

0 comments on commit a7b28b9

Please sign in to comment.