Releases: luisfun/discord-hono
Releases · luisfun/discord-hono
v0.12.0
BREAKING CHANGE
Context integration
Affected code
const func= (c: CommandContext<Env> | ComponentContext<Env>) => {
if (c instanceof CommandContext) //...
}
Modified code
const func= (c: CommandContext<Env> | ComponentContext<Env>) => {
if (c.interaction.type === 2) //...
}
Full Changelog: v0.11.4...v0.12.0