Skip to content

Commit

Permalink
fix: rename message field to messageOrInteraction
Browse files Browse the repository at this point in the history
  • Loading branch information
samfundev committed Mar 14, 2024
1 parent 68d8c87 commit d435f5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/parsers/Args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export abstract class Args {
}

export interface ArgsJson {
message: Message | AnyInteraction;
messageOrInteraction: Message | AnyInteraction;
command: Command;
commandContext: Record<PropertyKey, unknown>;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/parsers/ChatInputCommandArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,6 @@ export class ChatInputCommandArgs extends Args {
* Defines the `JSON.stringify` override.
*/
public toJSON(): ArgsJson {
return { message: this.interaction, command: this.command, commandContext: this.commandContext };
return { messageOrInteraction: this.interaction, command: this.command, commandContext: this.commandContext };
}
}
2 changes: 1 addition & 1 deletion src/lib/parsers/MessageArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ export class MessageArgs extends Args {
* Defines the `JSON.stringify` override.
*/
public toJSON(): ArgsJson {
return { message: this.message, command: this.command, commandContext: this.commandContext };
return { messageOrInteraction: this.message, command: this.command, commandContext: this.commandContext };
}
}

Expand Down

0 comments on commit d435f5c

Please sign in to comment.