Ben855 - I can't seem to get slash subcommands wor...
I can't seem to get slash subcommands working. I'm able to register them just fine but my chatInputRun methods are not running. Heres my code https://hastebin.com/enakigunaq.typescript. No errors are printed and the only relevant logs are when the command is registered I get the standard registry logs shown below.
S
Sawako•532d ago
code?
B
Ben•532d ago
See the link above
S
Sawako•532d ago
SteveSubCommand extends the subcommand plugin class?
B
Ben•532d ago
Yep
S
Sawako•532d ago
did you register the plugin?
B
Ben•532d ago
Indeed I did
I’m also pretty sure registering it only loads the default error listeners
S
Sawako•532d ago
Yes, it was to see if there was an error
Can you make a reproducible?
B
Ben•532d ago
I’ll give it a shot in the morning
Got it working. It turns out the issue was because the
'HasRolePlay'
precondition couldn't be found since I spelled in wrong in the file structure Its interesting that it didn't log any errors though.Welcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
2.2KMembers
View on DiscordWant results from more Discord servers?
More PostsStealth - Any idea what's going on here?Any idea what's going on here?RVX - new to coding here. (very new) how do i un...new to coding here. (very new)
how do i unregister a command?
looks like registering a command an! 𝑱𝒂𝒎𝒆𝒔__ - Hello, I need help with my backup cod...Hello, I need help with my backup code.
The rooms are created correctly but the categories are creatBigBrainAFK - So how does one interact with Forum ...So how does one interact with Forum channels in sapphireSlinky - Hello, I just started using the framework...Hello, I just started using the framework yesterday and currently having a issue trying to reset theHyperfire - How would i ago about adding custom fi...How would i ago about adding custom fields to commands? Like for example aliasespochiko - Hello! does anyone kno whow to fix this ...Hello! does anyone kno whow to fix this problem? ive been trying to figure out why for the past 30 mNitsua - Editing a previously ran slash command re...Editing a previously ran slash command results in an error.
```
Encountered error on chat input comwilluhmjs - ```jsValidationError s.string Exp...```js
ValidationError > s.string
Expected a string primitive
Received:
| undefined
at Stsam - ```srcconfig.ts737 - error TS2345 Argum...```
src/config.ts:7:37 - error TS2345: Argument of type 'string' is not assignable to parameter of tRhys - ^Sort of related to above, does inheritance...^Sort of related to above, does inheritance work with commands?
I've got a few commands for openinThatGuyJamal - Is it possible to make a default va...Is it possible to make a default value for registering command meta data. Like:
```
guildIds: isCanaUser - ```javascriptconst { Client, Events, Gate...```javascript
const { Client, Events, GatewayIntentBits } = require('discord.js');
const client Ben855 - For autocomplete arguments in slash comma...For autocomplete arguments in slash commands, if the user enters something that wasn't available in Rhys - Is there a way to use preconditions to remo...Is there a way to use preconditions to remove redundant if checks?
For example:
```typescript
@AppTobyy - how do i fixhow do i fixTobyy -Jesse - How would one go about adding user permiss...How would one go about adding user permissions to a slash command? This is my first time working wiJesse - why am i getting this error?why am i getting this error?secondubly - Not sure if my googling is just insuf...Not sure if my googling is just insufficient but is there a way to add multiple users as a parameter