mirror of
https://github.com/discordjs/discord.js.git
synced 2026-09-17 16:57:28 +00:00
* feat(structures): presence structures * feat(structures): add GatewayPresenceActivityTimestamps substructure * feat(structures): add GatewayPresenceActivitySecrets * feat(structures): add GatewayPresenceActivityParty * feat(structures): add GatewayPresenceActivityEmoji * feat(structures): add GatewayPresenceActivityButton * feat(structures): add GatewayPresenceActivityAssets * feat(structures): add ActivityFlagBitFields * feat(structures): add GatewayPresenceActivity structure * docs(structures): update class remark on GatewayPresenceActivityButton * feat(structures): add GatewayPresenceClientStatus * feat(structures): add GatewayPresenceUpdate * docs(structures): update `GatewayPresenceActivity#flags` for clarity * fix(structures): return correct value for getter on ActivitySecrets * test(structures): add tests & use correct type on ActivityTimestamps * docs: rm todo comment * fix: correct incorrect implementation of party#id * chore: rename structures * feat(structures): update tests, comments, date getters * feat: split `size` into 2 different getters * test: update tests for new getters * refactor(structures)!: use xDate convention in favour of xAt * fix(structures): add `inviteCoverImage` getter + update tests * test(structures): apply review feedback * chore: use `dateToDiscordISOTimestamp` and cleanup tests * feat: isArrayFieldSet typeguard & tidy up * feat(structures): add URL getters, typeguards, update tests * test(presence): review feedback * test(presence): use realistic values This uses values from the Discord API docs. * test: rename tests to Presence instead of GatewayPresence * test(structures): review feedback * docs: use new discord docs links in jsdoc * fix: address feedback for tests Make some changes to all tests; - use a standard beforeEach block to use a new instance on each test for robustness; - check that the patched result contains the expected patched values as opposed to testing for any change across the structure, for accuracy.
25 lines
894 B
TypeScript
25 lines
894 B
TypeScript
export * from './automoderation/index.js';
|
|
export * from './bitfields/index.js';
|
|
export * from './channels/index.js';
|
|
export * from './emojis/index.js';
|
|
export * from './entitlements/index.js';
|
|
export * from './interactions/index.js';
|
|
export * from './invites/index.js';
|
|
export * from './messages/index.js';
|
|
export * from './polls/index.js';
|
|
export * from './presences/index.js';
|
|
export * from './skus/index.js';
|
|
export * from './soundboards/index.js';
|
|
export * from './stageInstances/index.js';
|
|
export * from './stickers/index.js';
|
|
export * from './teams/index.js';
|
|
export * from './users/index.js';
|
|
export * from './webhooks/index.js';
|
|
export * from './voice/index.js';
|
|
export * from './Structure.js';
|
|
export * from './subscriptions/index.js';
|
|
export * from './Mixin.js';
|
|
export * from './utils/optimization.js';
|
|
export type * from './utils/types.js';
|
|
export type * from './MixinTypes.d.ts';
|