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 f45f8b0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 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
1 change: 0 additions & 1 deletion src/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export interface CommandReply {
}

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

0 comments on commit f45f8b0

Please sign in to comment.