Tony
Tony
Explore posts from servers
SIASapphire - 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
NNuxt
Created by Tony on 4/29/2023 in #❓・help
Server /api returning 404, but still working
I'm only running into an issue with fs.unlink hanging now, otherwise working great. Thanks!
9 replies
NNuxt
Created by Tony on 4/29/2023 in #❓・help
Server /api returning 404, but still working
I didn't realise that the ffmpeg library is pretty old and not promise/sync by default
9 replies
NNuxt
Created by Tony on 4/29/2023 in #❓・help
Server /api returning 404, but still working
Oh hell yeah, that worked great, thanks a bunch!
9 replies
NNuxt
Created by Tony on 4/29/2023 in #❓・help
Server /api returning 404, but still working
No description
9 replies
NNuxt
Created by Tony on 2/10/2023 in #❓・help
useLazyFetch errors not resolving
Also, with the current code there, I am getting this error in console: Uncaught (in promise) TypeError: $setup.items is null
3 replies
NNuxt
Created by Tony on 11/26/2022 in #❓・help
Changing pages keeping the original page content until refresh
No, but I only useFetch on the second page
6 replies