This commit is contained in:
Ashley Graves 2024-10-03 11:45:11 +02:00
parent 1206eb9190
commit ce28ba511e
9 changed files with 88 additions and 20 deletions

View file

@ -20,7 +20,7 @@ module.exports = {
files: [
new AttachmentBuilder()
.setName(interaction.targetMessage.id + ".json")
.setFile(Buffer.from(JSON.stringify(interaction.targetMessage, null, 4), "utf-8"))
.setFile(Buffer.from(JSON.stringify(interaction.targetMessage.toJSON(), null, 4), "utf-8"))
],
ephemeral: true
});

View file

@ -20,7 +20,7 @@ module.exports = {
files: [
new AttachmentBuilder()
.setName(interaction.targetUser.id + ".json")
.setFile(Buffer.from(JSON.stringify(interaction.targetUser, null, 4), "utf-8"))
.setFile(Buffer.from(JSON.stringify(interaction.targetUser.toJSON(), null, 4), "utf-8"))
],
ephemeral: true
});