diff --git a/history/29-01-2026.json b/history/29-01-2026.json new file mode 100644 index 0000000..6810fa8 --- /dev/null +++ b/history/29-01-2026.json @@ -0,0 +1,36 @@ +[ + { + "interaction": { + "type": 2, + "id": "1466473802148872486", + "applicationId": "887789346277691402", + "channelId": "470712099753164811", + "guildId": "343827205878710273", + "user": "264739894641950720", + "member": "264739894641950720", + "version": 1, + "appPermissions": "2230881414020816", + "memberPermissions": "2230883322429171", + "locale": "pl", + "guildLocale": "en-US", + "entitlements": [], + "authorizingIntegrationOwners": { + "0": "343827205878710273" + }, + "context": 0, + "attachmentSizeLimit": 10485760, + "commandId": "1452614990078021710", + "commandName": "play", + "commandType": 1, + "commandGuildId": null, + "deferred": true, + "replied": true, + "ephemeral": false, + "webhook": { + "id": "887789346277691402" + }, + "options": {} + }, + "url": "https://soundcloud.com/musicbymoonlght/4th-of-july-rock-x-house-mix-by-moonlght-vol-2?si=93777764ee5c404db6f3fb3c6dc347d8&utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing" + } +] \ No newline at end of file diff --git a/src/util/history.ts b/src/util/history.ts index 108d199..6ec2326 100644 --- a/src/util/history.ts +++ b/src/util/history.ts @@ -27,5 +27,7 @@ export async function add_to_history(history: HistoryObject) { data.push(history) - fs.writeFileSync(file_path, JSON.stringify(data, null, 2)); + fs.writeFileSync(file_path, JSON.stringify(data, (key, value) => { + return typeof value === "bigint" ? value.toString() : value + }, 2)); }