Skip to content

Commit

Permalink
refactor: do not add path to CommandInteractionData
Browse files Browse the repository at this point in the history
  • Loading branch information
sasial-dev committed Feb 9, 2024
1 parent acfdffb commit 180df7f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/server/dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export class ServerDispatcher extends BaseDispatcher {
} catch (err) {
this.handleError(player, text, err);
interactionData = {
path: commandPath,
executor: player,
text,
reply: {
Expand Down
1 change: 0 additions & 1 deletion src/shared/core/interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export class CommandInteraction {
*/
getData(): CommandInteractionData {
return {
path: this.path,
executor: this.executor,
text: this.text,
reply: this.replyData,
Expand Down
2 changes: 0 additions & 2 deletions src/shared/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Result } from "@rbxts/rust-classes";
import { t } from "@rbxts/t";
import { CommandInteraction } from "./core/interaction";
import { CommandPath } from "./core/path";

export type CommandGuard = (
runNext: () => void,
Expand Down Expand Up @@ -54,7 +53,6 @@ export interface CommandReply {
}

export interface CommandInteractionData {
path: CommandPath;
executor: Player;
text: string;
reply?: CommandReply;
Expand Down

0 comments on commit 180df7f

Please sign in to comment.