Skip to content

Releases: itsMapleLeaf/reacord

[email protected]

28 Oct 19:54
a00fbc0
Compare
Choose a tag to compare

Minor Changes

  • 11153df: breaking: more descriptive component event types

  • fb0a997: add new descriptive adapter methods

    The reacord instance names have been updated, and the old names are now deprecated.

    • send -> createChannelMessage
    • reply -> createInteractionReply
    • ephemeralReply -> createInteractionReply(interaction, { ephemeral: true })

    These new methods also accept discord JS options. Usage example:

    // can accept either a channel object or a channel ID
    reacord.createChannelMessage(channel)
    reacord.createChannelMessage(channel, {
    	tts: true,
    })
    reacord.createChannelMessage(channel, {
    	reply: {
    		messageReference: "123456789012345678",
    		failIfNotExists: false,
    	},
    })
    
    reacord.createInteractionReply(interaction)
    reacord.createInteractionReply(interaction, {
    	ephemeral: true,
    })

[email protected]

10 Oct 15:54
82b3575
Compare
Choose a tag to compare

Patch Changes

  • ced48a3: distribute d.ts files again instead of the source

    distributing the source causes typecheck errors when the modules it imports from (in this case, @reacord/helpers) don't exist in the end users' projects, so we'll just distribute d.ts files instead like normal. failed experiment :(

[email protected]

28 Sep 17:34
1f67e7c
Compare
Choose a tag to compare

Patch Changes

  • 41c87e3: fix type definitions

    "types" wasn't updated, oops!

    technically the typedefs were already correctly defined via "exports", but this may not be picked up depending on the tsconfig, so I'll ensure both are used for compatibility purposes. but this might be worth a note in the docs; pretty much every modern TS Node project should be using a tsconfig that doesn't require setting "types"

[email protected]

28 Sep 04:22
b210670
Compare
Choose a tag to compare

Patch Changes

  • 104b175: ensure message is edited from arbitrary component updates
  • 156cf90: fix interaction handling
  • 0bab505: fix DJS deprecation warning on isStringSelectMenu
  • d76f316: ensure action rows handle child interactions

[email protected]

04 Aug 15:41
Compare
Choose a tag to compare

This release fixes an error when trying to use the <Link> component (#17)

[email protected]

23 Jul 03:31
Compare
Choose a tag to compare

Allows components like <EmbedTitle> and <EmbedField> to accept JSX for their content. Before only strings were allowed

function Example() {
  return (
    <Embed>
      <EmbedTitle>
        <SomeText />
      </EmbedTitle>
    </Embed>
  )
}

function SomeText() {
  return <>some text</>
}

v0.4.0

21 Jul 21:24
Compare
Choose a tag to compare

Updated for Discord.js 14! Thanks @Crawron ❤️

v0.3.7

09 Jul 19:55
Compare
Choose a tag to compare

This release fixes an error thrown when trying to require the CommonJS build

v0.3.6

28 Apr 03:40
Compare
Choose a tag to compare
  • Fixes a bug where updates would sometimes be incorrect when calling .render() and .deactivate()
  • Fixes to work with React 18

v0.3.1

11 Jan 22:50
Compare
Choose a tag to compare

Hotfix; 0.3.0 wasn't built before releasing 🙃