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:
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....
Jump to solution
21 Replies
Yhya
YhyaOP2y ago
@Helpers Any one knows?
Krish
Krish2y ago
upgrade to v4
Yhya
YhyaOP2y ago
I used it in the first 2 hours from it released What are you talking about
Krish
Krish2y ago
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...
Krish
Krish2y ago
Its added most probably let me check
Krish
Krish2y ago
idk how to use it though maybe someone else can help next
Yhya
YhyaOP2y ago
@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
Krish
Krish2y ago
when there's bulk overwrite why you need idHints?
Yhya
YhyaOP2y ago
for the warn they give me I don't need warns for every command
Solution
Favna
Favna2y ago
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.
Yhya
YhyaOP2y ago
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?
Krish
Krish2y ago
yeah pass an array
idHints: ['1234567890', '0987654321']
idHints: ['1234567890', '0987654321']
vladdy
vladdy2y ago
Or just use BulkOverwrite and never have to bother with it
JcbSm
JcbSm2y ago
how do you acc use it i cant figure it out
vladdy
vladdy2y ago
you just set the default behavior to it!
JcbSm
JcbSm2y ago
OH MY GOD ITS AMAZING !!!!!!!!!!! So i can bin off idHints now
Freakspot
Freakspot2y ago
Sorry Vladdy, would you mind elaborating on this? Where and how would you do that?
vladdy
vladdy2y ago
and using BulkOverwrite
Freakspot
Freakspot2y ago
Ahh, thanks for pointing out that bit of the documentation!
Want results from more Discord servers?
Add your server