6 Commits
Author SHA1 Message Date
TTtie a36119ee03 chore: migrate to pnpm + minor housekeeping (#258)
Migrates Dysnomia over to pnpm. Might also do some housekeeping while at
it.

Short list of changes: (entries will be added here as needed)
- Migrated to pnpm. CI has been updated relatively blindly and will need
some testing beforehand.
- A lock file is now included for local development
- Actions are pinned to their commit SHA
- Updated some dependencies
- tsconfig.json now targets ES2025 + modern Node.js module resolution
-
2026-08-12 13:55:18 +00:00
TTtie de437ad5b6 ci: update used workflows (#247)
Updates the workflows to use their latest version, along some
consistency fixes.

Additionally, when releasing, the built tarball won't be rezipped again.
2026-05-12 10:09:35 +02:00
TTtie e067343175 ci: add publish workflow
done because provenance and laziness; a copycat from libsodium, pretty much
2024-11-18 21:50:01 +01:00
TTtie dc3129e2a4 refactor: switch to ESLint flat config, add JSDoc linting (#147)
This commit switches Dysnomia over to ESLint flat config for
futureproofing and better maintainability. For the most part, the
codebase will pass the test suite, apart from a few exceptions
introduced by the stylistic plugin which I believe are reasonable to
include.

Additionally, JSDoc linting was added to maintain proper 
alignment of various features.
2024-08-02 18:56:44 +00:00
TTtie 7031c23b31 ci: bump workflows from v3 to v4 (#132)
Actions based on Node.js v16 are deprecated. Using a new version of the actions bumps their runtime version to Node.js v20.

Ref: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
2024-04-27 17:44:33 +00:00
TTtieandWilsontheWolf 0df1369a82 chore: pre-v0.1.0 housekeeping (#26)
* add pull request CI

* forgot to checkout the repository :(

* do not fail fast on CI

* deprecate the default export function call

* correct invalid jsdoc

* add guildAuditLogEntryCreate event

* Add deprecation notices to examples using deprecated interfaces

* Add missing deprecation comment to esm.mjs

* export ForumChannel on the main module

* Update flags and interfaces related to OAuth application data

This also includes deprecation of undocumented flags

* fix linting

* fix incorrect invite object construction in GuildAuditLogEntry#target

* update audit log-related interfaces to reflect the current API status

* promote AutoModerationRule to a class; update appropriately

* fix(Client): whoops, return AutoModerationRule in editAutoModerationRule

* Add support for Member#flags

ref: https://github.com/discord/discord-api-docs/commit/5a6c4e10858ae736b09d352b67387a096b4adcdb

* Support GuildChannel#permissions

Available only on channels received on the interaction resolve object

* docs: VoiceChannel#topic does not exist

* add GUILD_DIRECTORY into ChannelTypes enum

* Update the Message interface

* Document ability to use flags when creating a message

* Support rateLimitPerUser in createThreadWithMessage

* correctly sort the Message#thread property

* deprecate/get rid of undocumented guild features

server discovery and hub types are undocumented

* correct getGuildPreview return

* update Guild#toJSON after removal of discovery fields

* support GuildPreview#stickers

* Support GuildIntegration#scopes

* support passing systemChannelFlags to createGuild()

* support editing Guild#premiumProgressBarEnabled

* support rtcRegion and videoQualityMode in createChannel()

* sort endpoints appropriately

* Support editing the guild's MFA level

* return the new MFA level directly

* correctly sort GuildScheduledEvent properties in the doc

* Deprecate undocumented scheduled event constants

* Support fetching event data in getInvite()

* Support associated event data with StageInstance

* Update docs related to stage instance privacy levels

* Support sendStartNotification in createStageInstance

* emit deprecation on getInvite(invID, withCounts, withExpiration)

* SticketPack banner_asset_id is optional

* feat(MessageFlags): add `SUPPRESS_NOTIFICATIONS` message flag (#30)

* Add the new `SUPPRESS_NOTIFICATIONS` message flag

This adds the new `SUPPRESS_NOTIFICATIONS`, as mentioned in https://github.com/discord/discord-api-docs/pull/5910/files

* Update TS definitions

---------

Co-authored-by: TTtie <me@tttie.cz>

* support creating new threads in a forum via webhooks

* remove handling of private_channels on READY

it's been an empty array for bots since 2018, not present in the docs anymore

* add old default forum layout to channel updates

* include components and remove mentionedBy from messageUpdate

* emit possibly uncached guilds in guildBan{Add,Remove} events

* use PossiblyUncached* types consistently

* feat(GuildIntegration): add scopes to toJSON()

* document GuildIntegration#guild

* Support guild integration gateway events

* Support text-in-stage

* doc(Client): specify getGuildAuditLog return type

* quote dev branch install command
# is a comment in some shells

---------

Co-authored-by: WilsontheWolf <33164598+WilsontheWolf@users.noreply.github.com>
2023-02-16 21:07:46 +00:00