making a !help command. where do i get the commands from?

im trying to make a help command since I've started learning about paginated messages, but where would I get these commands from?
Solution:
There are several ways to get the list of all commands, depending on the context of your current code. The following are the different methods: Inside another command:
this.store // Store<Command> extends Collection<Command> extends Map<Command>
this.store // Store<Command> extends Collection<Command> extends Map<Command>
...
Jump to solution
1 Reply
Solution
Spinel
Spinel11mo ago
There are several ways to get the list of all commands, depending on the context of your current code. The following are the different methods: Inside another command:
this.store // Store<Command> extends Collection<Command> extends Map<Command>
this.store // Store<Command> extends Collection<Command> extends Map<Command>
Inside another piece:
this.container.stores.get('commands') // Store<Command> extends Collection<Command> extends Map<Command>
this.container.stores.get('commands') // Store<Command> extends Collection<Command> extends Map<Command>
Anywhere else:
import { container } from '@sapphire/framework';

container.stores.get('commands') // Store<Command> extends Collection<Command> extends Map<Command>
import { container } from '@sapphire/framework';

container.stores.get('commands') // Store<Command> extends Collection<Command> extends Map<Command>
Want results from more Discord servers?
Add your server