百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

slash-create

> 编程语言
开源

️ Discord 的斜杠命令的创建者和处理器

365 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

️ Discord 的斜杠命令的创建者和处理器

Features

  • Multiple server support (Express, Fastify, etc.)
  • Hook into an existing Discord bot client
  • Sync loaded commands to Discord from slash-create
  • Load commands from a folder
  • Command throttling/cooldowns

Quickstart

If you want an easy start on getting slash commands on your bot, you can use slash-up to create a project using a template.

bash
npx slash-up init

After creating a project, you can edit commands to your liking and start it up with yarn start.

You can also deploy a slash-create template to the following services:

Cloudflare Workers Vercel Heroku Railway

Installation

bash
npm i slash-create

Or, using yarn:

bash
yarn add slash-create

Using webservers

In order to use a specific webserver, you will need to install the dependency associated with that server. The following server types require these dependencies:

  • AWSLambdaServer: none technically, meant for use with AWS Lambda and Amazon API Gateway, see example
  • AzureFunctionServer: none technically, meant for use with Azure Functions, see example
  • BunServer: none, meant for use in the Bun runtime
  • CloudflareWorkerServer: none, only available in the web export via slash-create/web
  • ExpressServer: express
  • FastifyServer: fastify
  • GenericServer: none, used for frameworks that use the Request and Response objects, see example
  • GatewayServer: none, see example
  • GCFServer: none technically, meant for use with @google-cloud/functions-framework, see example
  • VercelServer: none, see example

Examples

  • Creating a SlashCreator
    • Using Webservers
      • Using AWSLambdaServer
      • Using AzureFunctionV4Server
      • Using GCFServer
      • Using VercelServer
      • Using GenericServer
    • Using Discord Bots
  • Creating commands

Useful Links

  • Discord Documentation on Application Commands
  • Website (source)
  • Documentation
  • Commands Template
  • GitHub
  • NPM
Resources & References

This project borrows resources and references from the following repositories:

  • dbots.js
  • eris
  • discord.js
  • Commando
  • slash-worker
  • slash-commands
  • discord-interactions

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptdiscorddiscord-botdiscord-interactionsdiscord-message-components

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言