aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/client
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-17 13:58:51 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-17 13:58:51 -0400
commit71b0d425927efbdb154d343f2da463e884e8a74e (patch)
tree09e9925ef3498f87c1b1e0dcab567d460caa36b2 /src/listeners/client
parent456f06912de38cb4d9ffa231eab1319cce2d5a08 (diff)
downloadtanzanite-71b0d425927efbdb154d343f2da463e884e8a74e.tar.gz
tanzanite-71b0d425927efbdb154d343f2da463e884e8a74e.tar.bz2
tanzanite-71b0d425927efbdb154d343f2da463e884e8a74e.zip
fix viewraw command
Diffstat (limited to 'src/listeners/client')
-rw-r--r--src/listeners/client/interactionCreate.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts
index f711db1..63775dd 100644
--- a/src/listeners/client/interactionCreate.ts
+++ b/src/listeners/client/interactionCreate.ts
@@ -38,13 +38,13 @@ export default class InteractionCreateListener extends BushListener {
ephemeral: true
});
} else if (interaction.isContextMenu()) {
- if (interaction.id === 'View Raw') {
+ if (interaction.commandName === 'View Raw') {
await interaction.deferReply({ ephemeral: true });
const embed = await ViewRawCommand.getRawData(interaction.options.getMessage('message') as BushMessage, {
json: false,
js: false
});
- return await interaction.reply({ embeds: [embed], ephemeral: true });
+ return await interaction.editReply({ embeds: [embed] });
}
}
}