Changelog for 4.3
Every release, newest first, each on a page of its own with its notes in full. Entries marked Breaking change a working bot; the migration guide says what to do about them.
4.3.4
· 12 patch changes
Patch Changes
respond(interaction).error()now adds an error to a private component message only when the message stays within Discord's text limits: 4000 characters across a Components V2 message's Text Displays, and 6000 characters across an embed message's embeds.An
attachmentslist given torespond()'ssend()oredit()is still sent as given, but MeoCord now warns when it leaves out uploads the edit's media still show, naming them: that media is sent as given and breaks, a gallery reading back not found, a File component refused, and an embed's images left as links to their signed CDN URLs in place of their uploads, so remove it too or keep its upload listed.meocord/eslintnow reads a bot'stsconfig.json,tsconfig.test.jsonandtsconfig.eslint.jsonfrom the folder of the bot's owneslint.config.*, wherever ESLint runs from.respond()now edits a follow-up that became the answer in that follow-up's own format.@Defer's lock no longer deletes a Components V2 message's uploaded files when the presenter's loading view has files of its own, and the restore no longer leaves its images broken.An edit through
respond()now keeps a message's uploaded files attachment-backed when it lists no attachments:@Defer's lock and restore without loading files, and an app's ownsend()oredit()that re-sends the message's components or embeds.respond()now edits a reply the app sent itself withinteraction.reply()ordeferReply()to a button, select menu or modal on a Components V2 message in that reply's own format.respond()now edits a Components V2 reply the app sent itself withinteraction.reply()as V2.Under
useStrictMocks(), the mocks now handle Components V2 messages as Discord does.Under
useStrictMocks(), the mocks now keep the files a message is sent with as Discord does, so a test sees an edit lose them.respond()now logs a warning, naming the interaction, when it drops non-emptycontentorembedsfrom an answer to a Components V2 message, which can carry only components.respond()now clears the content and embeds of a message that holds them when its edit or update makes it Components V2, sendingcontent: nullandembeds: []with the components.