Files
Asad Humayun fce498982a fix(structures): add missing toJSON method on Subscription structure (#11431)
fix(structures): add missing `toJSON` method on Subscription

When writing tests for #11407, it became apparent that I had forgotten to add the `toJSON` method for this structure when I was initially wrote the structure. I have now added this method and it passes when running the tests that I have written for this (which will be merged in a following PR).

Signed-off-by: Asad Humayun <asad.humayun@asadh.io>
2026-03-01 21:10:26 +00:00
..
2025-07-12 18:24:30 +00:00
2025-07-12 18:24:30 +00:00
2025-10-13 12:54:08 +00:00


discord.js


Discord server npm version npm downloads Tests status Last commit. backers Code coverage

Vercel Cloudflare Workers

About

@discordjs/structures is a low level wrapper around Discord JSON Objects, meant to be a foundation to build upon in a higher level library.

Installation

Node.js 22.12.0 or newer is required.

npm install @discordjs/structures
yarn add @discordjs/structures
pnpm add @discordjs/structures
bun add @discordjs/structures

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation.
See the contribution guide if you'd like to submit a PR.

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official discord.js Server.