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
dfb7f93dd8
fix(types): DiscordCreateApplicationCommand.description is optional ( #2986 )
...
* Made the description optional for creating commands
* Update packages/types/src/discord.ts
Co-authored-by: ITOH <to@itoh.at >
---------
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2023-04-09 23:47:15 +00:00
DeveloperDragon and ITOH
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
DeveloperDragon
5638766882
Fix option for preferSnakeCase ( #2984 )
2023-04-09 20:34:12 +00:00
Skillz4Killz
40eaf1757c
refactor(bot)!: interaction.data.guildId is useless ( #2982 )
2023-04-08 16:32:31 +02:00
Jonathan Ho
7151b338e4
ci(bench): fix benchmark result not saved for pr ( #2981 )
2023-04-08 16:31:35 +02:00
Jonathan Ho
0b8cb1e463
ci(rest): proxy multi arch image ( #2980 )
...
* ci(rest-proxy): multi arch image
* ci(rest-proxy): fix doc
* ci(rest-proxy): add test build multi arch image
* ci(rest-proxy): update version
* ci(rest-proxy): fix missing setup buildx
* ci(rest-proxy): fix target
* ci(rest-proxy): fix trivy
* ci(rest-proxy): fix cache
* ci(rest-proxy): load true
* ci(rest-proxy): move image scan
* ci(rest-proxy): fix name
* ci(rest-proxy): fix cache
* ci(rest-proxy): add name
* ci(rest-proxy): add schedule scan
* ci(rest-proxy): fix string
* ci(rest-proxy): update cache version
2023-04-08 16:30:42 +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
9fad36087f
Merge branch 'main' of https://github.com/discordeno/discordeno
2023-04-06 06:50:31 +00:00
Skillz4Killz
b5cca2e1c9
feat: transformer user new style
2023-04-06 06:50:27 +00:00
ITOH
25fd78b93e
ci(rest): fix rest proxy image registry ( #2978 )
2023-04-05 22:09:44 +00:00
Jonathan Ho
51fd668dfb
ci(rest): proxy add basic ci ( #2976 )
...
* ci(rest-proxy); add basic ci
* ci(rest-proxy); add workflow to path filter
* ci(rest-proxy): fix path
* ci(rest-proxy): add target
* ci(rest-proxy): add publish job
* ci(rest-proxy): fix image name path
2023-04-05 21:57:41 +00:00
Skillz4Killz
60623474e6
Merge branch 'main' of https://github.com/discordeno/discordeno
2023-04-05 21:08:08 +00:00
Skillz4Killz
e318e44752
feat: interaction transformer new style
2023-04-05 21:08:04 +00:00
Jonathan Ho
79ff2bf0c8
docs(rest-proxy): add comment ( #2975 )
2023-04-05 19:28:50 +00:00
Jonathan Ho and Skillz4Killz
747c80f1f6
feat(rest-proxy): init docker ( #2972 )
...
* feat(rest-proxy): init docker
* refactor(rest-proxy): smaller size
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2023-04-05 19:21:40 +00:00
ITOH
60d1c2d3eb
refactor(types)!: remove PRIVATE_THREADS guild feature ( #2974 )
...
Closes: https://github.com/discordeno/discordeno/issues/2847
2023-04-05 13:45:53 -05:00
Skillz4Killz
32fe8b8d88
fix: remove private thread
2023-04-05 18:41:36 +00:00
Skillz4Killz
afd7e17791
Merge branch 'main' of https://github.com/discordeno/discordeno
2023-04-05 18:40:21 +00:00
Skillz4Killz
a30eda0165
fix: test new image
2023-04-05 18:40:18 +00:00
Skillz4Killz and Jonathan Ho
3127531a46
fix: finish bucket file coverage ( #2968 )
...
* fix: finish bucket file coverage
* Update packages/utils/tests/bucket.spec.ts
Co-authored-by: Jonathan Ho <heiheiho000@gmail.com >
---------
Co-authored-by: Jonathan Ho <heiheiho000@gmail.com >
2023-04-05 13:32:18 -05:00
ITOH
f249e58c68
feat(bot,types): add missing automod trigger metadata ( #2973 )
2023-04-05 17:55:32 +00:00
Skillz4Killz
ebc9ec533d
chore: move proxy files to src folder
2023-04-05 05:00:38 +00:00
Skillz4Killz
76a7333980
fix: base draft for rest proxy
2023-04-05 04:57:02 +00:00
ITOH
927ee42ce0
fix(rest): set the correct auth header when using proxy ( #2969 )
2023-04-04 22:24:20 +00:00
Skillz4Killz and Jonathan Ho
f8afb94aa0
feat: commandOptionsParser util ( #2961 )
...
* feat: commandOptionsParser util
* test(utils): fix missing import it
* fix: support mentionable and attachments
* fix: finish coverage
* fix: when typings fail gg
---------
Co-authored-by: Jonathan Ho <heiheiho000@gmail.com >
2023-04-04 11:47:49 +00:00
ITOH
8c9c3d53bf
refactor(rest)!: make invalid bucket lazy ( #2967 )
...
* refactor(rest): make invalid bucket lazy
Instead of using timeouts we should aim to use a lazy bucket system.
* that might be better
* fix tests
2023-04-04 03:34:34 +00:00
ITOH
e3549a8675
fix(rest): does not need to set the absolute url ( #2966 )
2023-04-03 20:00:30 +00:00
Skillz4Killz and ITOH
4317550b1c
feat: start reaction role guide ( #2960 )
...
* feat: start reaction role guide
* Update website/docs/examples/_category_.json
Co-authored-by: ITOH <to@itoh.at >
* Update website/docs/examples/reactionroles.md
Co-authored-by: ITOH <to@itoh.at >
* Update website/docs/examples/reactionroles.md
Co-authored-by: ITOH <to@itoh.at >
* Update website/docs/examples/reactionroles.md
Co-authored-by: ITOH <to@itoh.at >
* Update website/docs/examples/reactionroles.md
Co-authored-by: ITOH <to@itoh.at >
* Update website/docs/examples/reactionroles.md
Co-authored-by: ITOH <to@itoh.at >
* Apply suggestions from code review
Co-authored-by: ITOH <to@itoh.at >
* Update website/docs/examples/_category_.json
---------
Co-authored-by: ITOH <to@itoh.at >
2023-04-03 19:25:26 +00:00
ITOH
895db84d34
refactor(rest): add header constants ( #2962 )
...
* refactor(rest): add header constants
* spelling error
* export
2023-04-03 19:01:14 +00:00
ITOH
0b02607649
ci: do not run on website changes ( #2964 )
...
Also removed the sync repo workflow since we do not use the sites repo actively anymore.
2023-04-03 18:05:55 +00:00
Skillz4Killz and ITOH
04d7db89a5
fix: export transformers na dhandler ( #2959 )
...
Co-authored-by: ITOH <to@itoh.at >
2023-04-03 17:28:11 +00:00
ITOH
aff0d47acd
blog: why we switched from deno to node.js ( #2958 )
2023-04-03 17:01:03 +00:00
ITOH and Skillz4Killz
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
7f9459b435
feat(rest): add isProxied ( #2957 )
...
Adds the `isProxied` property to rest.
This effectively removes the `startWith('https://discord.com/api ')` check.
2023-04-03 15:51:47 +00:00
ITOH
50282f9190
refactor(rest)!: improve sendRequest ( #2956 )
...
* refactor(rest)!: refactor `sendRequest`
- Removed `url` in favour of `route`. This change will effectively remove a bunch of unnecessary checks from dd. Also this changes how rest proxies have to pass the route to the `makeRequest` function. But since it will just require you to pass `req.route + req.query` it is an improvement compared to `rest.baseUrl + req.route + req.query`.
- Introduced `HttpResponseCodes` an internal enum to remove magic numbers.
- Improved the rate limted response handling. Made it simpler.
- Removed unnecessary `JSON.stringify(await result.json())` since `await result.text()` does effectively the same.
- Changed the anti memor leak `response.json()` to `response.arrayBuffer()` since latter does not do any additional processing.
* .
* forgot to fix that
2023-04-03 15:23:01 +00:00
ITOH
bb92a78e6a
ci: fix labeler adding style on refactor
2023-04-03 16:43:17 +02:00
Jonathan Ho
fda9ef25f2
fix(bench): missing app id ( #2955 )
2023-04-03 03:05:20 +00:00
ITOH
af64b18518
forgot to commit that
2023-04-03 00:16:25 +02: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
56ae189812
ci: fix benchmarks
2023-04-02 23:58:40 +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
ITOH
0f41cd302e
ci: fix benchmarks ( #2953 )
2023-04-02 21:06:55 +00:00
ITOH
da74ea7e55
docs(types)!: update intents ( #2951 )
...
- Added missing event docs
- Added a note for privileged intents
- Renamed `GuildBans` to `GuildModeration`
2023-04-02 21:05:08 +00:00
ITOH
fd357aeace
refactor(rest)!: move routes to their own creator function ( #2950 )
...
Currently the route definitions make `createRestManager` massive. Moving them to their own creator function makes it a bit easier to handle.
Also `sessionInfo` has been removed since it's just an alias to `gatewayBot`. Instead `gatewayBot` should be used.
It has been removed since the routes are mainly used internally in the lib. Almost no one should need to touch them outside, but if they do they should know how routes are called.
2023-04-02 21:04:33 +00:00
ITOH
7c031df875
refactor(rest)!: remove falsy token check ( #2949 )
...
* refactor(rest): remove falsy token check
This is in favour for interaction only bots, which still need rest but cannot provide a valid bot token.
If you want to use rest for your normal bot it should be your own responsibility to pass a valid token.
Further more `applicationId` is now a required property since we cannot extract the id from the token anymore.
* forgot to commit that
* fix error
* make appid optional again
* app id throw error if undefined
* fix test
2023-04-02 21:39:08 +02:00