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

Did you find this page helpful?