Adds message forwarding support to Dysnomia. Going purely by the metric of "it doesn't crash", receiving forwarded messages should work just fine, sending forwards still results in a 403 on my side but should work just fine.
Thanks to @MertBhey for forwarding a couple messages over for testing!
Ref: https://github.com/discord/discord-api-docs/commit/86641ea0
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.
For the time being, poll results are only cached when the poll tally is finalized. If there's a need for caching interim results, please, send a PR.
* feat: support polls
Ref: https://github.com/discord/discord-api-docs/commit/df7d3652
* feat(Shard): add basic poll WS event processing
* types: add basic poll typings
* lint: sort methods correctly
* fix!: PollTypes -> PollLayoutTypes
* types: add typings for poll objects
* lint
* fix(types): poll create object doesn't have an answer_id in answers
* fix(types): remove invalid `after` option from `GetPollAnswerVotersOptions`
* fix(types): wait, this is actually here twice, for whatever reason
* fix(types): fix-up merge
* fix(types/docs): answerID is not a string
* fix(docs/types): also use Number for answerID in getPollAnswerVoters
* refactor!: put answerID before user in poll vote events
this should introduce proper jsdoc inheritance and make it slightly more convertible
also unifies the cases when the docs would be written directly on the class field
* stage 0.5: move all props (almost) everywhere to their own blocks
* convert a couple more structures
* remove stray Guild import
* convert SharedStream, VoiceConnection
* convert Message structure
The update() method is already called in the base class - according to JS class semantics, when calling a constructor via `super`, `this` still points to the object at the top of the prototype chain, resulting in the update() method being called twice or more down the prototype chain as the super-classes initialize.
* 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>
* Add rateLimitPerUser to update()
* Add rateLimitPerUser to oldChannel in Channel update
* Fix my mistake
super.update to super.update(data)
oops
* Undefined Check