Giter VIP home page Giter VIP logo

discord-slash-commands's Introduction

Hey there, I'm Rie.

I write software, mostly related to Discord modding. I'm also Available To Hire!

Discord ModLoader

Load Discord Client Mods (such as Vencord, Moonlight, BetterDiscord) without ever needing to patch the Discord client. Saving you the pain of patching/unpatching/updating whenever the client or mod updates. Check it out here

DPacker

A webpack debundler, primarily made for splitting & beautifying webpack modules for easy reading & parsing. Specifically targets Discord, but works for most other webpack sites. Check it out here

JSX Reconstructor

Convert webpack/minified react code back into valid JSX. Check it out here

Discord Build Logger

Logging all Discord builds, currently undergoing a rewrite. Check it out here

Discord Experiments Enabler

A small script you can paste into your Discord client to enable experiments without needing a client mod. Effects stay until you reload the client. Check it out here

hhhhh

github stats

discord-slash-commands's People

Contributors

a5rocks avatar gaminggeek avatar meguminsama avatar rodentman87 avatar sharpdev-me avatar vendicated avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discord-slash-commands's Issues

No file dist/index.js but in dist/src/index.js

Hello !

On the 1.2.2 the package works well, on the 1.3.0 I have this error when importing it :
screenshot

The problem seems to be the "main" entry in the package.json that points to "dist/index.js" instead of "dist/src/index.js".

I don't think i'm the only one, it would be weird if so ๐Ÿค”

Great job by the way, i love you package ๐Ÿ‘

Question

Hello, I'm kinda new to this stuff.
How do I make a slash command which actually replies with a message?
(sorry for this stupid question)

error

Why I have ReferenceError: ApplicationCommandOptionType is not defined error?

Registered command does not show up on the client

I tried registering a slash command as stated in README.md but it won't show up on the discord client. I can see it in the list that is returned from getApplicationCommands() but it won't show in the client why? Tried it on canary and the normal one.

[FEAT] Proper handling/throwing of Errors

Is your feature request related to a problem? Please describe.
It's annoying that there's next to no indication that creation has succeeded if you aren't looking at the response (like I wasn't), and the typings don't indicate that a rate limit object can be returned.

Describe the solution you'd like
Either add the rate limit object to the typings, and make it known it can be returned, or (what I would personally prefer) throw an error when you get ratelimited. (check status code & body)

Describe alternatives you've considered
None.

Additional context

Editing slash commands uses the wrong HTTP method

Describe the problem
In the docs it says to use PATCH to update commands, not sure if this is a new thing or not, but trying to edit a command now gives a 405: Method Not Allowed.

To Reproduce
Steps to reproduce the behavior:

  1. Create a slash command
  2. Try to edit the slash command

Expected behavior
Edits the slash command

Screenshots
image

Environment (please complete the following information):

  • Node.JS version: 14.7.0
  • Operating System Ubuntu 20.04 LTS on Windows 10 x86_64
  • Package version 1.2.0

[FEAT] Adding tests

I believe we need to add some tests, to make sure everything works properly when we make new releases.

[FEAT] Command Builder API

Add a Command Builder API

Something like...

const newCommand = new CommandBuilder()
  .setName("cool-command")
  .setDescription("a cool command")
  .addOption({
    name: "cool",
    description: "is the command cool",
    type: ApplicationCommandOptionType.BOOLEAN
  })
  .build()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.