Skip to content

Commit d435f5c

Browse files
committed
fix: rename message field to messageOrInteraction
1 parent 68d8c87 commit d435f5c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lib/parsers/Args.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export abstract class Args {
9090
}
9191

9292
export interface ArgsJson {
93-
message: Message | AnyInteraction;
93+
messageOrInteraction: Message | AnyInteraction;
9494
command: Command;
9595
commandContext: Record<PropertyKey, unknown>;
9696
}

src/lib/parsers/ChatInputCommandArgs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,6 @@ export class ChatInputCommandArgs extends Args {
543543
* Defines the `JSON.stringify` override.
544544
*/
545545
public toJSON(): ArgsJson {
546-
return { message: this.interaction, command: this.command, commandContext: this.commandContext };
546+
return { messageOrInteraction: this.interaction, command: this.command, commandContext: this.commandContext };
547547
}
548548
}

src/lib/parsers/MessageArgs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ export class MessageArgs extends Args {
710710
* Defines the `JSON.stringify` override.
711711
*/
712712
public toJSON(): ArgsJson {
713-
return { message: this.message, command: this.command, commandContext: this.commandContext };
713+
return { messageOrInteraction: this.message, command: this.command, commandContext: this.commandContext };
714714
}
715715
}
716716

0 commit comments

Comments
 (0)