Skip to content

Commit 0914d52

Browse files
committed
Update command-file-setup.mdx
1 parent 4c23dfa commit 0914d52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/docs/pages/docs/command-file-setup.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Here's an example `content` command which replies with the content of the target
9292
},
9393

9494
run: ({ interaction, client, handler }) => {
95-
interaction.reply(`The message is: ${interaction.targetMessage}`);
95+
interaction.reply(`The message is: ${interaction.targetMessage.content}`);
9696
},
9797

9898
options: {
@@ -115,7 +115,7 @@ Here's an example `content` command which replies with the content of the target
115115
}
116116

117117
export function run({ interaction, client, handler }) {
118-
interaction.reply(`The message is: ${interaction.targetMessage}`);
118+
interaction.reply(`The message is: ${interaction.targetMessage.content}`);
119119
}
120120

121121
export const options = {
@@ -138,7 +138,7 @@ Here's an example `content` command which replies with the content of the target
138138
}
139139

140140
export function run({ interaction, client, handler }: ContextMenuCommandProps) {
141-
interaction.reply(`The message is: ${interaction.targetMessage}`);
141+
interaction.reply(`The message is: ${interaction.targetMessage.content}`);
142142
}
143143

144144
export const options: CommandOptions = {

0 commit comments

Comments
 (0)