Xeno™
Explore posts from serversSIASapphire - Imagine a framework
•Created by Xeno™ on 2/23/2024 in #sapphire-support
Dynamic subcommand methods
9 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 1/6/2024 in #sapphire-support
Autocomplete handling in subcommands
I was wondering how would i handle autocomplete interactions inside subcommands? i have a subcommand group the command has autocompletion on some of it's options is it possible to handle autocompletion within the subcommand class or do i have to handle it in the listener?
8 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 1/2/2024 in #sapphire-support
Sapphire's approach to components
Does sapphire introduce a new way to handle component interaction? Non persistent components, If so what are they
7 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 10/27/2023 in #sapphire-support
fetchPrefix not functioning as it should
5 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 10/22/2023 in #sapphire-support
Issue with listeners, not emitting
2 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 10/19/2023 in #sapphire-support
General question on timer-manager and stopwatch
I have seen both of them so far and well i can see that, both are quite good at performance however i am not sure what to use, should i use timer manager to manage timers since it also stores them in a hashmap or should i stick to stopwatch and just store those, since my purpose is mainly managing short time durations less than a day at rare cases it can be more than a day. But for that we'll more likely depend on the database to store that.
I would like to get suggestions on what should i use
4 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 10/17/2023 in #sapphire-support
Does subcommand methods have context parameter?
Hey so i have a subcommand and so for some of it's subcmds am using a single method "event" and binding them to each subcmd but is it possible to know which cmd is ran since in a normal SapphireFramework#Command inheritance the messageRun provides a context parameter which has the commandName attribute pretty helpful not sure if it's that possible with the subcmds so i can identify which subcmd is ran
4 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 10/14/2023 in #sapphire-support
Multiple command exports from a single file.
Is it possible to export multiple Command classes and they'll be recognised as seperate commands?, i.e:- i have a file where i have 2 classes each extending to the Command class or the Subcommand class from the sapphire plugin. And they'll also get stored in the command store
6 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 10/3/2023 in #sapphire-support
Issue with subcommand groups
5 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 10/1/2023 in #sapphire-support
Are union types supported in args.pick?
I really wanted to know whether i could do union types in arguments picking, coming from discord-akairo it had that thing where you can have multiple types which then gets resolved at argument prompting
8 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 9/30/2023 in #sapphire-support
InteractionHandler pieces not loading
4 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 9/30/2023 in #sapphire-support
Wanting to remove the footer page index, PaginatedMessage
4 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 9/27/2023 in #sapphire-support
Converters
Hey wondering if, it is possible to have type convertions in sapphire or with any of it's utility packages, I have seen the Resolver class but i think there are some methods missing in example the library dpy has a series of converters one is the ColorConverter, so i was wondering whether it's possible to have such converters in sapphire https://github.com/Rapptz/discord.py/blob/master/discord/ext/commands/converter.py#L619
5 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 9/21/2023 in #sapphire-support
PaginatedMessage, Actions
I am trying to create a paginator with multiple pages (embeds) and so to paginate i want to use buttons
this is my snippet but this doesn't work, instead this sends the embeds, all of them at once.
I must be missing something, please point it out for me so i can know what i am doing wrong
3 replies
SIASapphire - Imagine a framework
•Created by Xeno™ on 9/18/2023 in #sapphire-support
Subcommands, and CommandGroups/SubCommandGroups
Hey!, I was wondering whether it's possible to create subcommands and groups with sapphire i.e
?automod enable
-> enable is part of the automod command group
?automod ignore reset
-> ignore is part of the automod command group and reset is part of ignore
subcommand group
Is it possible to replicate something like this?12 replies