Commit Graph
54 Commits
Author SHA1 Message Date
Skillz4Killz 1d232ac34a fix: interaction.edit type 2023-05-05 23:27:40 +00:00
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
Skillz 5c42bdd3ed Merge branch 'main' of https://github.com/discordeno/discordeno into main 2023-04-28 14:14:33 -05:00
Skillz 4dd7ca71c5 fix: interaction.respond typing 2023-04-28 14:14:29 -05:00
livelove1987 be142101e9 fix: Fixed message transformers (#3013) 2023-04-27 22:44:26 +00:00
Skillz e2d86ea644 fix: channel.parentId 2023-04-19 14:33:45 -05:00
Skillz b044211b27 fix: missing helpers 2023-04-19 14:00:42 -05:00
Skillz a6c5cc4ca9 fix: mark acknowledged when responding 2023-04-19 13:16:52 -05:00
Skillz4Killz e54f51a7af fix: hack in helpers again (#3008)
* fix: hack in helpers again

* fix: remaining type errors

* fix: weird linter issue
2023-04-19 12:57:36 -05:00
Skillz4Killz 7b06df4b1c feat:i interaction.respond 2023-04-19 04:21:50 +00:00
Yaikava fd518cb554 🐛 - fix: bot pkg - gateway - prefer snakecase by default (#3006) 2023-04-16 23:53:02 +00:00
Awesome Stickz 85ea2d9b8c fix(bot): missing exports of types (#3004)
* fix(bot): missing exports of types

* fix: add other exports
2023-04-16 23:51:17 +00:00
Skillz4Killz e19eca5e80 fix: transformer customizers for channel, member, role, user 2023-04-10 04:09:45 +00:00
Skillz4Killz cebe1f4056 Merge branch 'main' of https://github.com/discordeno/discordeno 2023-04-10 03:24:17 +00:00
Skillz4Killz 987728ab78 fix: channel create guild id was missing 2023-04-10 03:23:52 +00:00
DeveloperDragonandITOH da0590120f feat(bot): add Interaction.data.type for Command interactions (#2987)
* Add type property to data

* Add back type I accidentally removed

---------

Co-authored-by: ITOH <to@itoh.at>
2023-04-09 21:59:49 +00:00
Skillz4Killz 40eaf1757c refactor(bot)!: interaction.data.guildId is useless (#2982) 2023-04-08 16:32:31 +02:00
Skillz4Killz 8ed5aed3a3 fix: linter errors 2023-04-07 17:56:36 +00:00
Skillz4Killz 3e88d5c956 fix: slight code improvement 2023-04-07 17:44:29 +00:00
Skillz4Killz a571431cf6 feat: channel, member, role with new style 2023-04-07 17:21:29 +00:00
Skillz4Killz b5cca2e1c9 feat: transformer user new style 2023-04-06 06:50:27 +00:00
Skillz4Killz e318e44752 feat: interaction transformer new style 2023-04-05 21:08:04 +00:00
Skillz4Killz 32fe8b8d88 fix: remove private thread 2023-04-05 18:41:36 +00:00
ITOH f249e58c68 feat(bot,types): add missing automod trigger metadata (#2973) 2023-04-05 17:55:32 +00:00
Skillz4KillzandITOH 04d7db89a5 fix: export transformers na dhandler (#2959)
Co-authored-by: ITOH <to@itoh.at>
2023-04-03 17:28:11 +00:00
ITOHandSkillz4Killz 088fd12513 fix(bot)!: rename auditLogEntryCreate to guildAuditLogEntryCreate (#2952)
* fix(bot)!: rename `auditLogEntryCreate` to `guildAuditLogEntryCreate`

* need to start small

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

* also remove this

* suggestions

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-04-03 15:52:34 +00:00
ITOH 1f26dd58d1 need to end with .js 2023-04-03 00:08:16 +02:00
ITOH 1aa053a29a more fixes 2023-04-03 00:04:44 +02:00
ITOH 43844571cc feat(bot): allow passing of applicationId (#2954)
* feat(bot): allow passing of applicationId

* Update packages/bot/src/bot.ts
2023-04-02 23:20:00 +02:00
Skillz4KillzandJonathan Ho dea9d1d152 fix(transformers): message transformer using different style (#2916)
* fix(transformers): message transformer using different style

* fix: more bench tests

* fix(bench): token can not be empty

* more desired props

* fix: bug on message.id props

* fix: transfomrer errors on bench

---------

Co-authored-by: Jonathan Ho <heiheiho000@gmail.com>
2023-04-01 21:26:46 -05:00
ITOH bcfeb5b6ae feat(bot,types): add Guild.maxStageVideoChannelUsers (#2935)
Closes: https://github.com/discordeno/discordeno/issues/2927
2023-04-01 19:18:26 +00:00
ITOH 05fc3fbeba style: format (#2925) 2023-04-01 02:46:46 +02:00
ITOH f5abd83cc5 fix(bot,rest,types)!: attachment sending (#2917)
* fix(bot,rest,types)!: attachment sending

* apply code suggestions

* forgot to add that

* this should not be there i guess

* maybe spell it right

* actually revert the attachments rename

* Change how method gets passed

* more stuff

* improve function name
2023-03-31 20:50:53 +00:00
ITOH 69d818cf84 fix(bot): channel transformer managed 2023-03-29 19:08:19 +02:00
ITOHandSkillz4Killz bfd1936581 feat(bot,client,types): add role subscriptions (#2899)
Closes: https://github.com/discordeno/discordeno/issues/2859

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-03-29 10:49:04 -05:00
ITOHandSkillz4Killz 6d43ca11a7 feat(bot,types): add Channel.managed (#2897)
Closes: https://github.com/discordeno/discordeno/issues/2871

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-03-29 10:41:05 -05:00
ITOH 9cfcc971ca feat(bot,types): add customMessage to AutoModerationActionMetadata (#2887)
* feat(bot,types): add `customMessage` to `AutoModerationActionMetadata`

Closes: https://github.com/discordeno/discordeno/issues/2881

* docs(types):  add clarification for the supported action type
2023-03-29 15:46:31 +02:00
Skillz eda9a75318 fix: type error in e2e bot 2023-03-26 14:43:52 -05:00
Skillz edc47daf9d fix: fmt/lint bugs 2023-03-26 13:44:39 -05:00
Skillz 610212a567 fix: return type on bot utils 2023-03-26 13:40:09 -05:00
Skillz 6b5d872ec4 fix: void return bug 2023-03-26 13:33:28 -05:00
Skillz f2b6590a72 fix: /bot imports in bot pkg 2023-03-26 12:28:30 -05:00
Skillz4Killz 39bac9fe0e fix: ts errors 2023-03-26 12:34:41 +00:00
Jonathan Ho a6c3ffe0ee test(bot): fix test type (#2839) 2023-03-25 10:35:47 -05:00
Awesome Stickz 206bae473b feat: added handlers and transformers to bot package (#2843) 2023-03-25 10:35:05 -05:00
Skillz 822bc7a921 fix: events need id not full shard 2023-03-16 10:58:21 -05:00
Jonathan Ho a196e22d9b chore: bump deps (#2836)
* chore: add yarn interactive-tools

* chore(deps): bump swc

* chore(deps): bump chai types

* chore(deps): bump mocha

* chore(deps): bump node types

* chore(deps): bump eslint

* chore(deps): bump other
2023-03-15 18:48:16 -05:00
Skillz 898578f349 fix: version static 2023-03-02 09:43:23 -06:00
Skillz b213c8bf75 fix: esnodenext for swc 2023-03-01 18:46:00 -06:00
Skillz e87a277de5 fix: use esnext in swc 2023-03-01 18:38:51 -06:00