Skip to content

discord-hono 0.0.5

Install from the command line:
Learn more about npm packages
$ npm install @lunarclient/discord-hono@0.0.5
Install via package.json:
"@lunarclient/discord-hono": "0.0.5"

About this version

🔥 Discord Hono npm v Bundle Size

👉 Documentation

This project is heavily influenced by Hono.
Thank you for Yusuke Wada and Hono contributors!

Features

  • Easy Build - Verify included. Code for each command is easier to write.
  • Lightweight - We make them as light as possible. Discord Hono has zero dependencies.
  • TypeScript - TypeScript support.

Install

npm i discord-hono
npm i -D discord-api-types # When using TypeScript

Sample Code

index.ts

import { DiscordHono } from 'discord-hono'

const app = new DiscordHono()
  .command('hello', c => c.res('world!'))

export default app

register.ts

import { Command, register } from 'discord-hono'

const commands = [
  new Command('hello', 'response world'),
]

register(
  commands,
  process.env.DISCORD_APPLICATION_ID,
  process.env.DISCORD_TOKEN,
  //process.env.DISCORD_TEST_GUILD_ID,
)

Examples

References

Details


Assets

  • discord-hono-0.0.5.tgz

Download activity

  • Total downloads 1
  • Last 30 days 1
  • Last week 0
  • Today 0

Recent versions

View all