Releases: itsMapleLeaf/reacord
reacord@0.6.0
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, })
reacord@0.5.5
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 :(
reacord@0.5.4
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"
reacord@0.5.3
reacord@0.5.1
This release fixes an error when trying to use the <Link>
component (#17)
reacord@0.5.0
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
v0.3.7
This release fixes an error thrown when trying to require the CommonJS build
v0.3.6
- Fixes a bug where updates would sometimes be incorrect when calling .render() and .deactivate()
- Fixes to work with React 18
v0.3.1
Hotfix; 0.3.0 wasn't built before releasing 🙃