Gavan
Gavan
Explore posts from servers
SIASapphire - Imagine a framework
Created by Gavan on 12/14/2022 in #sapphire-support
Is there a recommended way to split subcommands across multiple files?
Oh that’s wonderful. Thanks! Should totally get referenced in the other docs. If I get a sec I’ll PR.
6 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/14/2022 in #sapphire-support
How do subcommands work with idHints and guildIds?
Thanks
5 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/14/2022 in #sapphire-support
How do subcommands work with idHints and guildIds?
Ah very interesting
5 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/13/2022 in #sapphire-support
Is there a way to prevent fetching information both in the precondition and the command itself?
@Lioness100 Ok, thanks! For the time being I just kinda invented a new 'guard' primitive for myself and am doing things like
public async chatInputRun(interaction: Command.ChatInputInteraction) {
...
if(!await guardIsValidTopic(interaction, topicResult)) return;
public async chatInputRun(interaction: Command.ChatInputInteraction) {
...
if(!await guardIsValidTopic(interaction, topicResult)) return;
8 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/5/2022 in #sapphire-support
Autocomplete handler not working
14 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/5/2022 in #sapphire-support
Autocomplete handler not working
Solved it. @Answer Overflow I didn't have .setAutocomplete(true).
14 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/5/2022 in #sapphire-support
Autocomplete handler not working
@Favna I'm not sure I follow. Isn't this one about a third of the way down? public override async parse( I do see that I'm kinda doing everything in parse, which I should change, but I still should be getting the console.log('autocompleting')
14 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/5/2022 in #sapphire-support
Autocomplete handler not working
"main": "dist/index.js",
14 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/5/2022 in #sapphire-support
Autocomplete handler not working
"scripts": { "build": "tsc", "watch": "tsc -w", "start": "node dist/index.js", "dev": "run-s build start", "watch:start": "tsc-watch --onSuccess "node ./dist/index.js"", "format": "prettier --write "src/*/.ts"" },
14 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/5/2022 in #sapphire-support
Autocomplete handler not working
TypeScript
14 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/5/2022 in #sapphire-support
Autocomplete handler not working
v3
14 replies
SIASapphire - Imagine a framework
Created by Gavan on 12/5/2022 in #sapphire-support
Autocomplete handler not working
14 replies