mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
fixed embeds in archive
This commit is contained in:
parent
8f5096ce5e
commit
8c4befad7b
@ -38,7 +38,8 @@ module.exports = {
|
||||
let path = `user/transcripts/raw/${n.channel.id}.log`;
|
||||
let embeds = [];
|
||||
for (let embed in n.embeds)
|
||||
embeds.push(n.embeds[embed].toJSON());
|
||||
// embeds.push(n.embeds[embed]); // n.embeds[embed].toJSON()
|
||||
embeds[embed] = { ...n.embeds[embed] };
|
||||
|
||||
fs.appendFileSync(path, JSON.stringify({
|
||||
id: n.id,
|
||||
|
@ -34,7 +34,8 @@ module.exports.add = (message) => {
|
||||
|
||||
let embeds = [];
|
||||
for (let embed in message.embeds)
|
||||
embeds.push(message.embeds[embed].toJSON());
|
||||
// embeds.push(message.embeds[embed]); // .toJSON()
|
||||
embeds[embed] = { ...message.embeds[embed] };
|
||||
|
||||
// message
|
||||
fs.appendFileSync(raw, JSON.stringify({
|
||||
|
Loading…
Reference in New Issue
Block a user