Chat input command IDs

I have a function that needs to get the id of a chat input command to process some logic, and I was wondering how I could get the id? Obviously it's stored in container.stores.get('commands') but I don't know where to go from there.
Solution:
import { ApplicationCommandRegistries } from '@sapphire/framework';

ApplicationCommandRegistries.acquire('commandNameHere').globalChatInputCommandIds
import { ApplicationCommandRegistries } from '@sapphire/framework';

ApplicationCommandRegistries.acquire('commandNameHere').globalChatInputCommandIds
...
Jump to solution
4 Replies
Solution
Favna
Favna5mo ago
import { ApplicationCommandRegistries } from '@sapphire/framework';

ApplicationCommandRegistries.acquire('commandNameHere').globalChatInputCommandIds
import { ApplicationCommandRegistries } from '@sapphire/framework';

ApplicationCommandRegistries.acquire('commandNameHere').globalChatInputCommandIds
Favna
Favna5mo ago
s!ev sapphire.framework.ApplicationCommandRegistries.acquire('whois').globalChatInputCommandIds
Skyra
Skyra5mo ago
Output: ⏱ 352.90μs
Set(1) { '1205923078627000381' }
Set(1) { '1205923078627000381' }
dan
danOP5mo ago
Thanks
Want results from more Discord servers?
Add your server