 EndyandSkillz4Killz
|
37aa4198c2
|
feat(bot): add more helper functions to BaseInteraction (#3018)
* Add more helper functions for `BaseInteraction`
- Breaking changes for `respond`
- `response` now takes `InteractionCallbackData`
- `options` is now `ephemeral: boolean`
- Added `edit`, `defer` and `delete`
* Add comments and `acknowledged` check for `defer`
* Update packages/bot/src/transformers/interaction.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
* Revert `respond` options, rename `ephemeral` to `private`
* Fix typo
* Fix arg name
- Renamed `private` to `isPrivate` to prevent reserved name collision
- Optional chaining for `options`
* Apply suggestions from code review
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
|
2023-05-05 15:52:49 +00:00 |
|