Closed twlite closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
discord-player-website | ✅ Ready (Inspect) | Visit Preview | Mar 28, 2024 8:05pm |
This is now available in @dev
for testing
Alternate api for hooks
Previous methods still work and this mode is opt-in. In order to enable this api, the command handler needs to provide context to
HooksContextProvider
and hooks must be called without any arguments. The benefit of this approach is you don't need to care about passing guild id every time you want to access something inside the command. Hooks will resolve correct data even if the same command is executed multiple times concurrently.Then discord-player hooks can be used without providing guild id.