Tony
Explore posts from serversSIASapphire - Imagine a framework
•Created by Tony on 2/24/2024 in #sapphire-support
Throwing errors in commands/subcommands
Also assumg that means I'll need to also have a
chatInputSubommandDenied
listener for subcommand preconditions?17 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/24/2024 in #sapphire-support
Throwing errors in commands/subcommands
Yep, now that's working perfectly, awesome
17 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/24/2024 in #sapphire-support
Throwing errors in commands/subcommands
Ahh, gotcha
17 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/24/2024 in #sapphire-support
Throwing errors in commands/subcommands
I've quickly just thrown a
throw 'Test'
into a command and seems that the chatInputCommandSuccess
is being emitted, not chatInputCommandError
(as the debug logger is going off, not any code I wrote for the error)17 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/24/2024 in #sapphire-support
Throwing errors in commands/subcommands
Alright, I'll have a mess about and see if I can get something to work, thanks
17 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/24/2024 in #sapphire-support
Throwing errors in commands/subcommands
Gotcha, so I could do some similar kind of listener for
chatInputCommandError
, and then just make my commands throw
an error?17 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/23/2024 in #sapphire-support
Limit command to specified roles?
Might be useful to have a list of authorized roles for that later on anyway
16 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/23/2024 in #sapphire-support
Limit command to specified roles?
Nah, just application commands. I might do it as a precondition still for when the bot's been added but it hasn't been set up in the settings anyway
16 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/23/2024 in #sapphire-support
Limit command to specified roles?
Ahh, very cool. Would this suffice instead of a preconditon, or should I do it just in case?
16 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/23/2024 in #sapphire-support
Limit command to specified roles?
This is only for one server, is that using the intergrations UI in server settings?
16 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/23/2024 in #sapphire-support
Limit command to specified roles?
I was hoping there was a way to tell Discord to hide the command from people that didn't have the roles, though I have no idea what exists
16 replies
SIASapphire - Imagine a framework
•Created by Tony on 2/23/2024 in #sapphire-support
Limit command to specified roles?
I assume just storing role IDs in the database, then checking if the user has one of those roles?
16 replies