Commit Graph
100 Commits
Author SHA1 Message Date
FlenyandLTS 7303a20d7a feat(gateway): Add transport compression support (#3815)
* Add zlib-stream transport-compression support

* remove external buffer, add the url param

this also fixes the CI Deno error

* use a queue and promises

instead of calling handleDiscordPacket from the callback of inflate.on('data')

* Add zstd support

* Re-add payload compression, set fzstd as optional, refactor

* add comment for decompressionPromisesQueue

* fix comment for isCompressed

* Don't create a new Uint8Array if the input is a Buffer

* Use a Uint8Array buffer instead of parsing incomplete JSON chunks

* remove old commented code

* Change ts expect error message

* use type import for ShardGatewayConfig

* Apply suggestions from code review

Co-authored-by: LTS (Link) <lts20050703@gmail.com>

---------

Co-authored-by: LTS (Link) <lts20050703@gmail.com>
2024-10-05 19:48:05 +02:00
Fleny 57fa3d4d22 Add new fields to message snapshots (#3897) 2024-09-07 08:40:42 +02:00
Fleny 48902bcb8e Add new member flags (#3896) 2024-09-07 08:27:40 +02:00
Fleny 45bfa059b5 feat(bot,rest,types): Add get activity instance endpoint (#3891)
* Add get activity instance endpoint

* Add ActivityInstance & ActivityLocation transformers
2024-09-07 08:21:14 +02:00
Fleny b1bfe94b7d Use atob instead of node:buffer for getBotIdFromToken (#3893) 2024-09-02 15:12:09 +02:00
Fleny 6a5f446c06 build(website): Update website deps, remove 1s load time (#3858)
* Update website deps, remove 1s load time

* Run biome migrate

* Test without terser plugin

* Do not always default to MDX

* remove webpack terser plugin

* Add some exclusions to website/tsconfig
2024-08-29 11:22:40 +02:00
Fleny 6584a3bf00 set recurrenceRule as nullable in update (#3871) 2024-08-21 22:01:09 +05:30
Fleny 9e516a09da Add poll_result Message/Embed Type (#3870) 2024-08-21 17:40:20 +02:00
FlenyandAwesome Stickz b3a8c866b4 feat(gateway): Expose makePresence from GatewayManager (#3851)
* Expose makePresence from GatewayManager

* Pass down the makePresence method on resharding shards

* inline makePresence option

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-18 18:03:38 +02:00
Fleny a0510da166 Add voiceChannelEffectSend event (#3869) 2024-08-18 14:44:39 +05:30
Fleny c1b0dc925d fix(bot)!: Remove direct calls to transformers (#3863)
* Remove direct calls to transformers

* Sort transformers by name

* Fix error
2024-08-18 09:04:18 +02:00
Fleny a80036fc12 Add get guild role endpoint (#3861) 2024-08-18 08:57:22 +02:00
Fleny 03f17ee36a Add commands dir import to examples register commands (#3848) 2024-08-18 08:49:27 +02:00
FlenyandAwesome Stickz 40ad08238a Update description for 4003 close code (#3868)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-17 11:45:09 +05:30
Fleny 943821ff9a use camelCase for body members (#3849) 2024-08-16 20:30:46 +02:00
FlenyandAwesome Stickz 08a5e4456f fix(gateway): change logLevel for some resharding logs (#3855)
* change logLevel for some resharding logs

* Apply suggestions from code review

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-12 16:41:36 +02:00
Fleny b7063580e0 feat(gateway): Make resharding.getSessionInfo optional (#3854)
* Make getSessionInfo optional

* change resharding.getSessionInfo to throw in checkIfReshardingIsNeeded

* Change warn message on spawnShards
2024-08-12 16:32:59 +02:00
Fleny 4899d0aa66 Add approximate_user_install_count (#3845)
And also a few missing values*
The values were not added to the reverse transformers as well, as a few
reverse transformers are missing for it
2024-08-10 19:36:46 -05:00
Fleny bb6b8df2cf Add get sticker pack endpoint (#3844) 2024-08-10 19:36:29 -05:00
Fleny 895cc17106 Add voice state http endpoints (#3841) 2024-08-10 19:36:15 -05:00
Fleny 62b3122e89 Add recurrence rule to scheduled event (#3834) 2024-08-10 19:34:55 -05:00
Fleny ab2930ce34 Add attachments to CreateMessageOptions (#3830) 2024-08-07 01:21:49 -05:00
Fleny 304a61c786 Add the propriety if it has _ to the object (#3828) 2024-08-07 01:20:50 -05:00
FlenyandAwesome Stickz d6898f2b7b feat(gateway): Use the native WebSocket implementation when available (#3808)
* Use the native WebSocket implementation when available

* merge types.js import in shard

* Apply suggestions from code review

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Do not use the WebSocket global on Node

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-07 01:16:55 -05:00
FlenyandAwesome Stickz 746f0a99ac fix(discordeno)!: Fix some errors in DiscordenoConfig (#3824)
* Fix typo, remove RecursivePartial from DiscordenoConfig.desiredProperties.properties

* Fix properties typo

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-03 10:26:21 +05:30
FlenyandAwesome Stickz 9e1ada64b8 fix(rest): Use a _ check instead of the manual one on the switch (#3825)
* Use a _ check instead of the manual one on the switch

* invert the check, as the current one is wrong

* move the check to before indexing the object

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-03 10:17:26 +05:30
Fleny 22a611761b Make token in rest and gateway for createBot optional (#3820) 2024-08-03 10:10:09 +05:30
FlenyandAwesome Stickz 791943a652 fix(rest): ignore snakelized properties in changeToDiscordFormat (#3795)
* fixes #3666

* Update packages/rest/src/manager.ts

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:38:15 -05:00
Fleny e315ee6d95 fix(bot)!: Remove old unprovided params from event params (#3794)
* Remove oldMessage from messageUpdate params

* Remove oldPresence from presenceUpdate as well
2024-07-30 23:36:26 -05:00
658acfb906 fix(gateway): Make heartbeat logging clearer (#3793)
* Make heartbeat logging clearer

* Update packages/gateway/src/Shard.ts

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:36:03 -05:00
Fleny e32c670ab1 fix(ci): Add env to test:e2e turbo task (#3809)
* Add env to test:e2e turbo task

Turbo in v2 does not pass down the environment variables unless manually specified (by default)

* use the correct env name for the test guild
2024-07-30 21:18:07 +02:00
FlenyandAwesome Stickz ef4cc80c63 fix(bot,gateway): Fix (some) resharding bugs (#3792)
* Improve logging, keep shard collections separated

* revert to erroring in getSessionInfo. Fill the value in createBot

* removed useless if

* remove same number of shards check

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Update manager.ts

* revert shard.events.message assignment for the spread

* use new Collection instead of .clear() + for-of

* Use fixed formula and note in the comment the inaccuracy

* Apply suggestions from code review

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Add a remark to shardsFullPercentage to let the user know of the inaccuracy

* Update comment and add a clearInterval

The clearInterval is not strictly needed, however it is better to ensure there is always one and only one internal running at a given point

* revert check for all shards online
It was bugged as gateway.resharding.shards gets populated overtime and not instantly

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:34:32 +05:30
Fleny e0209cf7f5 Rename game activity type to playing (#3807) 2024-07-30 04:25:53 +05:30
FlenyandAwesome Stickz faaa8af48a clear offlineSendQueue after resolving all the promises (#3806)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 04:15:21 +05:30
Fleny ee11d39744 Add discordeno to the release workflow (#3790) 2024-07-23 00:29:42 -05:00
Fleny 8ad8b5d6e8 Add shebang (#3789) 2024-07-23 00:29:23 -05:00
Fleny c7b44e5e30 feat(bot): Add desiredProperties to createBot (#3787)
* Add `desiredProperties` to createBot

* remove not used default
2024-07-23 00:29:11 -05:00
Fleny 0819d2be9b feat(bot,types): Type commandOptionsParser, remove any (#3786)
* Type commandOptionsParser, remove any

* fix ts errors
2024-07-23 00:28:36 -05:00
Fleny 402f1b3049 Add message forward (#3764) 2024-07-21 11:49:07 -05:00
Fleny 2421ae24cf Add application emoji endpoints (#3774) 2024-07-20 16:56:00 -05:00
Fleny c1fd19c0ee Remove DiscordPartialGuild, use Partial<DiscordGuild> (#3768) 2024-07-20 16:55:45 -05:00
Fleny fb8af2ba54 Use passed in logger instead of the imported one (#3765) 2024-07-20 16:54:38 -05:00
Fleny 31222855d8 fix(docker): prevent snyk null in severity scores for unassigned CVEs (#3746)
* Fix snyk null in severity scores for unassigned CVEs

* Keep node 18
2024-07-20 16:54:11 -05:00
Fleny 4778968aba Update actions versions (#3760)
Especially actions/cache and the artifacts related ones
2024-07-20 16:54:00 -05:00
Fleny 0a5493196d fix(rest): Fix followups from getting stuck in queue (#3761)
* Fix followups from getting stuck in queue

* remove queueIdentifier as it isn't actually needed

* Revert some changes that aren't needed
2024-07-20 16:53:41 -05:00
Fleny 235334381c Add roblox connection (#3757) 2024-07-20 16:53:20 -05:00
Fleny 495c532d9f ci: Add token parameter to codecov action (#3759)
* Add token parameter to codecov action

* add secrets: inherit
2024-07-20 16:53:08 -05:00
FlenyandLTS20050703 27fc12ec34 feat(cli)!: CLI generated types (#3453)
* Move transformers types to a single file

* Add script to test TS Compiler api capabilities
Remove nested objects where possible

* Use Partial<Role> and DiscordOverwrite instead of objects in AuditLogChange

* Fix typescript errors

* Remove interfaces.json

It is a generated file from the test script, not something that should be commited

* Start work on the test generation script
The TS version got bumped to 5.5.3

* Fix any type, use node16 module resolution

"node" is a deprecated alias for "node10", node16 is the recommended

Add code to check for type errors when getting the types from the interfaces

Fix errors when TS tries to find the files that the root tsconfig.json handles

* remove some useless compile options in TSApiTest

* Add jsdoc parsing
JSDoc tags with the next right after are not supported

* fix small format issue

* Fix ApplicationCommandPermissions todo

* Fix CI error

* Simplify parseDocumentation

* get type directly from the sourceFile

* remove hasUndefinedUnion as it is no longer used

* fix discordeno bin file name

* Update the yarn lockfile

* Merge scripts into one

* Use `@internal` instead of `@private` + `@deprecated`

* work on .d.ts files

* Process interface members once

* Move emit/preEmit diagnostics to a unit test

they can take quite a while, even 3-4 seconds, so running in the CLI every time does not seem ideal

* test: add build:types to test:unit dependencies

This is a test commit, it will provably get reversed. The scope is to see what CI does with this

* add find-up to deno import map

* add typescript to the deno import map

* Add node:assert to deno import map

* check for this.timeout that exists

deno does not have the timeout

* add build:type to deno-unit

* Temp hack to work-around the script deno tests

* Test with bun running the test as well

* fix turbo deps for unit tests

* remove test scripts

* Update CI to use build:type cache

* Apply code review suggestion

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Add code to modify the interface member

* use an actual config

The config source is still a dummy object for now

* Search and use discordeno.config.js file

* provide config from cli options

* Handle props in base objects
The dependencies of an object need to be declared/updated manually, it would be painful to fix this in such a way that would be something that Typescript can give us from the compiler API

* add some tests for desired proprieties

* also check for a .mjs config file

* Add support for .ts config files

We use the typescript compiler to emit an in-memory version of the config file, import it and then remove it. It does not do bundling so if the config imports local files it will not work. Also the file is not type-checked as it would slow down the config loading

* remove compiler host, use callback on program.emit

* fix deno ci error

* add node:fs/promises to deno import map

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-07-20 16:52:21 -05:00
Fleny ac1952f05b fix: tsconfig.json (#3734)
* Update tsconfig.json

* Remove allowJS
2024-07-14 12:59:55 -05:00
Fleny 991609d336 build(deps-dev): Update turbo to v2 (#3735)
* Update turbo to v2

Also some small config changes

* Remove test for the non-exiting "client" pkg

* Re-add build:type dependency to lint

* Add missing comma

* Use turbo in build:watch
2024-07-14 12:59:34 -05:00
Fleny 9e101a0320 fix: adapt biome formatting of package.json files to match the yarn one (#3745)
* Fix biome formatting of package.json files to match the yarn one

* Ignore package.json

This includes a format on the member toggles as that pr got merged while using ESLint formatting and it didn't get updated before merging
2024-07-14 12:59:19 -05:00
Fleny 87f62d2a4b fix(bot,types): guild members flags (#3617)
* Add flags field to ModifyGuildMember

Also add the GuildMemberFlags enum as that was missing

* Add flags to member object

* Fix type error

* Update member transformer

* Readd flags desired propriety

* Rename enum to MemberFlag for consitency

* Rename to GuildMemberFlags, use number not the enum itself

* Use ToggleBitfield for flags

* Add getters

* Fix build error

* Merge flags in toggles

* change flags getter to return the actual flags

And not our custom toggles values

* Fix reverse transformer
2024-07-13 13:12:02 -05:00
Fleny ab6f632ca9 Update ModifyChannel interface (#3744) 2024-07-13 13:07:42 -05:00
Fleny 919474069d chore: Migrate ESLint and prettier to Biome (#3634)
* Migrate eslint and prettier to biomejs

This does NOT include examples/bigbot as it has its own formatter

* Update to biome 1.8.0

* Readd dotenv dev dependency to rest

During a merge it got lost
2024-07-13 13:05:02 -05:00
Fleny 7836ec393f Add missing proprieties on channel (#3736) 2024-07-13 08:52:05 -05:00
Fleny c7e0ccc87c always log close.code in debug, log close.code in info log (#3740) 2024-07-13 08:49:53 -05:00
Fleny 727c7104ed Rename channel.autoArchiveDuration to defaultAutoArchiveDuration (#3741) 2024-07-13 08:19:26 -05:00
Fleny 6cf16bdc6b fix(docker): Fix invalid snyk serif (#3737)
* Add code to prevent invalid snyk serif

* Prevent the fix for snyk to run on pr
2024-07-13 08:17:59 -05:00
Fleny 06664ed8bb fix(website): fix typedoc configuration (#3733)
* Fix typedoc CI crashse

And adapt the website to its new output

* Revert /tsconfig.json changes

* Update footer
2024-07-13 08:15:19 -05:00
Fleny 3daf71a507 Use bigint for permission flags (#3726)
Also convert the enum to an object as typescript doesn't like bigint in an enum
2024-07-09 09:23:46 -05:00
FlenyandSkillz4Killz 97a8016041 chore: Code changes & formatting and linting (#3552)
* Do some code changes & run prettier and eslint

* Fix test:test-type script

* Apply code review suggestions

* update heartbeat interval & add a reason for the specific value

* Fix husky error

* Update to TS 5.5

And use ${configDir}

* Fix test.json tsconfig base

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-08 15:11:41 -05:00
FlenyandSkillz4Killz 2f89d4da30 Add partial guild to interaction (#3618)
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-07 16:32:06 -05:00
Fleny 24ea6f8af8 fix(bot)!: Guild features type (#3719)
* Fix guild features type, remove useless features des prop

* Add missing guild features
2024-07-07 16:14:13 -05:00
FlenyandAwesome Stickz f479660642 Document blocking words in member profiles automod (#3642)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-07 22:16:22 +05:30
FlenyandAwesome Stickz 749acbca60 Add the Guild Incident message types (#3646)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-07 21:46:43 +05:30
FlenyandLTS20050703 769d50ff93 feat(examples): Migrate example bots to discordeno v19 (#3647)
* Migrate beginner and minimal bot to discordeno v19

* Add .swcrc and fix minimal yarn.lock

* update .gitignore files

* Update nodejs template

Discordeno.js (DD v13) -> DD v19 "raw"

Currently the permission checking is not working correctly

* Fix permission issue

* Rename the templates

* remove unused indents

* Rename starter to beginner

So now it is minimal (main branch) -> beginner

* Really small refactor & eslint fixes (bigbot template)

This is to make my life less miserable at a later time

* mark rabbitMQ plugins as binary files

git seems to be treating them as text

* Add v19 bigbot rest

* Add gateway code

and rabbitmq_message_deduplication v0.6.2 plugin

* fix yarn messy semevr version for @types/amqplib

* clear channel con amqp connection close

* Add bot code for bigbot v19

missing prisma setup, collector setup & language setup

* Add localization

The "command versioning" system works the same say as before, but instead of a command version the code updates the commands every time they change based on the SHA1 of the commands

* Use file relative paths instead of cwd relative paths

* Fix todos

* revert autocomplete tests

* Revert "Add localization"

This reverts commit 2b1da8d2cd.

* move env assertion to config.ts

* Add shard ping to /ping

* fix small issue

* Update readme files

* use Date.now() for the bigbot REST ping

* Remove bigbot v16 code

* Add docker (compose) setup to bigbot template

* remove healthchecks from rest & gateway

* Update dependencies of examples

* Apply readme(s) suggestions from code review

Hopefully i haven't missed any related to markdown files

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Apply code suggestions from code review

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-07-07 10:40:43 -05:00
Fleny aecc55d150 fix(bot)!: Add guild.features to guild transformer (#3705)
* Add guild.features to guild transformer

* Use a getter on the toggles for features
2024-07-07 10:39:04 -05:00
Fleny 2def050845 feat(types)!: Add flags enums (#3717)
* Add flags enums

* Remove extra MessageFlags enum from `@discordeno/bot`

This is not a breaking in itself as `@discordeno/types` has this enum

* Fix CI error, remove usage of MessageFlags and SkuFlags

* Revert "remove usage of MessageFlags and SkuFlags"

This reverts part of commit 954b347ebb.

* fix ci error
2024-07-07 10:37:49 -05:00
FlenyandSkillz4Killz 49ce2e44df feat(bot,rest,types): Add burst (super reaction) informations on events & DiscordReactionType (#3615)
* Add GetReactions#type & DiscordReactionType

* Add burst and burstColors to reaction add/remove events

The reaction remove event only has burst, not burstColors

* Add type to message reaction add/remove

* Fix type error

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-07 10:26:35 -05:00
b16e9b70a0 fix(types): Update max poll duration and defaults for creating a poll (#3694)
* Change the max duration of poll from 7 days to 32

* Update default values for poll creation (#3701)

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-07 10:25:56 -05:00
FlenyandAwesome Stickz b20e12ded4 feat(rest,types)!: User apps GA (#3696)
* User apps GA

* Apply code-review suggettions

Without some re-wording of the already confusing Discord usage of context/type term

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-07 20:42:02 +05:30
FlenyandSkillz4Killz 48bc543e09 Add avatarDecorationData to guildMemberUpdate (#3679)
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-07 00:56:16 -05:00
FlenyandSkillz4Killz a1af1ff910 Adds premium interaction (#3680)
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-06 17:04:05 -05:00
Fleny a2d8afb462 Document the position behavior for duplicate position values (#3690) 2024-07-06 16:30:19 -05:00
Fleny 9cea65f761 Add invite type (#3614) 2024-07-06 16:30:05 -05:00
Fleny 9cca689688 Add Attachment title (#3691) 2024-07-06 16:19:06 -05:00
Fleny f57e2e962f Add guildId to guildStickersUpdate event (#3706) 2024-07-06 16:08:25 -05:00
Fleny e12142daf6 Use %20 instead of ' ' for joining scopes (#3709) 2024-07-06 15:56:48 -05:00
Fleny 39b18a1682 Use bot.transformers.emoji in handleGuildEmojisUpdate (#3704) 2024-07-06 19:12:54 +00:00
008834d389 docs: Reaction roles bot example (#3361)
* Update docusaurus typescript setup for v3

And fix lint-staged and eslint

* Enable automatic JSX runtime

* Remove babel config and dependencies

* update yarn.lock

* add typecheck to site workflow

* update typedoc config

* downgrade docusaurus packages

* Update site.yml

* Type context and options in webpack-docusaurus-plugin.ts

* Add reaction-roles code from docs example

* Finish /roles reactions create command, missing event handler

* Add handler for the role buttons

* Initial update to reactionroles.md

+ code changes accordingly

* Finish reactionroles.md file

* Corrections to reactionroles.md

* update deps & add --strip-leading-paths to swc

* Add a note for the possibile ratelimit on command upsert

* Update website/docs/examples/reactionroles.md

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Apply suggestions from code review

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Update website/docs/examples/reactionroles.md

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Use a register-commands.ts for app commands

* Apply suggestions from code review

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Update for the latest version of discordeno

Also add the tsconfig for the reaction roles example as i forgot it and was using the root dir one

* Update deps, add typescript as dev deps, add .swcrc

---------

Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
Co-authored-by: Jonathan Ho <heiheiho000@gmail.com>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-07-06 17:37:33 +00:00
FlenyandSkillz4Killz 5cccaeaf06 fix(rest)!: Fix Basic OAuth2 queues and add method for updating the queues and ratelimit paths after a refresh (#3185)
* fix basic auth requested

* Change queue keys to "{auth}{url}"

* add updateTokenQueues method

* Fix unit tests

* removed interval check for queue clear | needs testing

* hide tokens in debug logs

* Fix 429 & 401 requests, rename queueBaseKey to requestAuthorization

* fix unit tests

* Add proxy.updateBearerTokenEndpoint option

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-06 17:30:03 +00:00
Fleny 92bf16645a PurchaseNotification message type (#3656) 2024-06-12 15:39:06 +00:00
Fleny f6a42b966a Add USE_EXTERNAL_APPS permission (#3658) 2024-06-12 15:38:17 +00:00
FlenyandAwesome Stickz ad7e74c4cd feat(bot,types)!: Replace userId with User object in interactionMetadata (#3627)
* Replace userId with User object in interactionMetadata

* Fix type error

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-05-26 19:36:48 +00:00
FlenyandAwesome Stickz 5290078044 fix(bot,types,utils)!: change avatar decoration url link (#3621)
* Change the avatarDecorationUrl link

* Add User#avatarDecorationData & Member#avatarDecorationData

* Fix type error

* Fix format error

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-05-26 19:14:11 +00:00
Fleny 226e3de43e Add auditlog events for onboarding (#3616) 2024-05-26 19:05:53 +00:00
Fleny 7a0d730b1b docs(types): Update some documentation of the options for slash commands (#3619)
* Update some documentation of the options for slash commands

* Update comments
2024-05-26 19:00:46 +00:00
Fleny c6ca749a4f Add botBannerURL to edit current bot banner (#3620) 2024-05-26 18:58:17 +00:00
Fleny f8f976acf4 Add reason to followAnnouncement (#3622) 2024-05-26 18:51:00 +00:00
FlenyandAwesome Stickz 163cebdcd0 Add the poll object to the message transformer (#3624)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-05-26 18:49:05 +00:00
Fleny e33b44e5e5 Add domain connection service type (#3623) 2024-05-26 18:41:11 +00:00
Fleny c570a881cf fix(utils): Use media.discordapp.net for gif stickers (#3625)
* Use media.discordapp.net for gif stickers

And add Gif to StickerFromatTypes as it was missing

* remove return undefined, use return
2024-05-26 18:39:42 +00:00
47d0cea664 feat(bot,rest,types): Add support for one-time entitlements (#3626)
* Add support for one-time entitlements

* Add comment to consumeEntitlement route

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Check for undefined instead of falsy values in consumed for entitlements

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-05-26 18:38:48 +00:00
FlenyandLTS20050703 541dc3b0cf feat(bot,types): Add MessageCall (#3628)
* Add message#call

* Update message transformer for message calls

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-05-26 18:07:45 +00:00
8e011210e2 feat(docs): Add getting-started with installation (#3557)
* Add getting-started with installation

* Add minimal example, and helpers and desired proprieties explanation

* Add comment on helper example usage

* fix small grammar error

* Fix GuildMessages being without the Intents. before

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Apply code suggestion

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Apply suggestions from code review

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* fix: typo

* remove todo

* Apply suggestions from code review

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Remove useless parenthesis

* Apply code review suggestion

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-05-24 05:09:35 +00:00
Fleny d0d810dfb5 Remove bot token from the shards logs (#3558) 2024-05-11 14:44:17 +00:00
Fleny a361a53d57 Add poll transformer export (#3550)
& fix a typedoc warning for the oauth2 func
2024-05-06 07:40:08 +00:00
FlenyandMatt Hatcher 687c29dd7a feat(bot,rest,types,utils): Support User-Installed apps, Interaction contexts and install types (#3502)
* Support integrationTypesConfig in Application

* Add support for commands with integrationTypes and contexts

And deprecate the dmPermission boolean, it is being replaced by contexts

* Update contexts comment to make it more clear

* User-Installed apps

* Add integrationType oauth parameter

fixes #3517

* Add null to contexts

closes #3523

* Mark oauth2 install params as nullable

closes #3525

* Fix typescript errors

* Add preview notices

---------

Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
2024-04-29 15:36:29 +00:00
Fleny c411076261 Fix bump script ignoring some @discordeno deps (#3547) 2024-04-29 15:34:42 +00:00
FlenyandLTS20050703 6ad4e1d2e8 feat(bot,rest,types): Add polls support (#3542)
* Add polls support

* Add default for limit on GetPollAnswerVotes

* Apply code rewiew suggestion

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-04-28 11:42:19 +00:00