How to make auto idhints?
so i want to make automatic idhints adding
like idHints: [this.id] but i think it doesn't work so how i can make it auto?
Solution:Jump to solution
There is no automatic idHints. You are completely misunderstanding what idHints are for. Read https://www.sapphirejs.dev/docs/Guide/application-commands/application-command-registry/registering-chat-input-commands#idhints again
In short idHints are used before commands are even registered (and this.id would be available) to diff files against API data....
21 Replies
@Helpers
Any one knows?
upgrade to v4
I used it in the first 2 hours from it released
What are you talking about
GitHub
request: [CoreReady listener] automatically delete application comm...
Is there an existing issue or pull request for this? I have searched the existing issues and pull requests Feature description We often get requests if Sapphire can automatically delete application...
Its added most probably let me check
GitHub
feat(ApplicationCommandRegistries): add `RegisterBehavior.BulkOverw...
Closes #578
Closes #577
Closes #579 (Supersedes)
idk how to use it though maybe someone else can help next
@Krish i know there is something like that but i need to get the id of the application command
to add it in idHints
Not to bulkoverwrite
when there's bulk overwrite why you need idHints?
for the warn they give me
I don't need warns for every command
Solution
There is no automatic idHints. You are completely misunderstanding what idHints are for. Read https://www.sapphirejs.dev/docs/Guide/application-commands/application-command-registry/registering-chat-input-commands#idhints again
In short idHints are used before commands are even registered (and this.id would be available) to diff files against API data.
oh ok thx i didn't know but i have two bots in the same repoistory with branch beta and main so i can make two idHints right?
yeah pass an array
Or just use BulkOverwrite and never have to bother with it
how do you acc use it i cant figure it out
you just set the default behavior to it!
OH MY GOD ITS AMAZING
!!!!!!!!!!!
So i can bin off idHints now
Sorry Vladdy, would you mind elaborating on this? Where and how would you do that?
Sapphire Framework
Configuring the global behavior when commands are not identical | S...
Configuring the global behavior is easy! You just need to import the
and using BulkOverwrite
Ahh, thanks for pointing out that bit of the documentation!