Favna
SIASapphire - Imagine a framework
•Created by Storm on 11/15/2024 in #sapphire-support
fallback
It is not possible.
RequiresGuildContext
is a decorator and decorators inherently will always only work on what they decorate. You can copy the code and add it to your own repo where you then provide a default function for fallback
.
https://github.com/sapphiredev/utilities/blob/bc456c311f273efcb8150d4e33d614c9889c3ed7/packages/decorators/src/djs-decorators.ts#L190-L1923 replies
SIASapphire - Imagine a framework
•Created by Chloe on 11/14/2024 in #sapphire-support
@sapphire/type does not work with Bun
yeah when will you
7 replies
SIASapphire - Imagine a framework
•Created by Chloe on 11/14/2024 in #sapphire-support
@sapphire/type does not work with Bun
@sapphire/type uses NodeJS internals so yeah that makes sense. Not much we can do about it unless someone were to rewrite it to a language like Rust. (prs welcome)
7 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
as for the application not responding, at a glance the code looks fine although I would make chatInputRun async, await then bulkDelete then reply. I would also add a defer at the top since a bulk delete can take a while and you must respond within 5 seconds otherwise Discord considers the application failed to respond
37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
shouldnt need to but if you want to see what is currently registered you can use https://slash-commands-gui.androz2091.fr
37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
Just saying but if you would switch from JavaScript to TypeScript the compiler would tell you about such mistakes, something to consider perhaps
37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
that is also wrong
37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
also aliases do nothing for slash commands btw. Since you provide the name and it only responds to that name
37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
but there can be client side caching yes
37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
nah it's instant. It took that long only in slash v1 which is gone for a long time now.
37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
idHints are part of the options of
registerChatInputCommand
https://sapphirejs.dev/docs/Guide/commands/application-commands/application-command-registry/registering-chat-input-commands/#idhints37 replies
SIASapphire - Imagine a framework
•Created by delios on 11/14/2024 in #sapphire-support
"The application did not respond" on bulkDelete message use
it's not
37 replies
SIASapphire - Imagine a framework
•Created by Youssef on 11/9/2024 in #sapphire-support
Sapphire not updating the command
Then it's either old files or client side caching. There is no way for it to actually still exist with bulk overwrite and the logs also say there is only 1 command
8 replies