Skip to content

Releases: luisfun/discord-hono

v0.12.0

01 Feb 03:41
Compare
Choose a tag to compare

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