meguminsama / discord-slash-commands Goto Github PK
View Code? Open in Web Editor NEWNode.JS Slash Commands for Discord
License: MIT License
Node.JS Slash Commands for Discord
License: MIT License
We need to implement the latest API changes. They should go live within a week or so.
Need to add components.
Documentation here: https://discord.dev/interactions/message-components
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)
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()
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.
Although this type is an alias of a primitive type, it's not itself a primitive type and therefore should follow the convention of PascalCase names.
The library needs support (at least typings) for components
I believe we need to add some tests, to make sure everything works properly when we make new releases.
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.
Is your feature request related to a problem? Please describe.
Sort of related to #24
Describe the solution you'd like
Due to the heavy ratelimits around creating commands, you should add support for bulk updating commands.
Describe alternatives you've considered
None.
Additional context
Bulk Overwrite Global Application Commands
Bulk Overwrite Guild Application Commands
See the draft PR here: discord/discord-api-docs#2737
No need to implement until the spec is finalised, but it could be good to get a head start.
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:
Expected behavior
Edits the slash command
Environment (please complete the following information):
Why I have ReferenceError: ApplicationCommandOptionType is not defined
error?
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 ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.