Hyperfire - How would i ago about adding custom fi...
How would i ago about adding custom fields to commands? Like for example aliases
H
Hyper•536d ago
I should add I'm using @ApplyOptions
And it's not letting me add stuff like aliases
Not alises
Aliases*
I meant usages
Like how would I add usages to my commands
F
Favna•535d ago
Chuck it into https://www.sapphirejs.dev/docs/Documentation/api-framework/interfaces/CommandOptions#detaileddescription
Other than that, the reason it doesn't let you is because you then haven't done some basic typescript stuff. Namely you can extend the command class sure but you'll also have to extend the CommandOptions interface and then use that instead of the base one.
H
Hyper•535d ago
I can use the command options interface perfectly fine, but I'm wondering how I can set up stuff like usages for my help command
F
Favna•535d ago
Just answered that
Chuck it into detailedDescription
And you can type it with module augmention
H
Hyper•535d ago
So I just use detailedDescription as my usage thing
And in help I add the field with name Usage and the value as the detailedDescription
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 Postspochiko - 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 parameterbomi - That's what I did with that, but this can b...That's what I did with that, but this can be usefulNoxillio - sapphiretype is impossible to install...@sapphire/type is impossible to install on Apple Silicon systems.Noxillio - Is there any purpose to sapphireplugi...Is there any purpose to @sapphire/plugin-editable-commands anymore now that application commands areBen855 - How are most of y'all using IDhints in pr...How are most of y'all using IDhints in production? Are you just manually hard coding them every timeNytelife26 - can i use `ApplyOptions` with an app...can i use `@ApplyOptions` with an application command, and if so do I still need to use `registerChaRhys - Is it possible to put preconditions on butt...Is it possible to put preconditions on button interactions? Looking through the docs / code it didn'