* 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
* 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
* 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
* 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
* feat: base work for reshardinf system
* fix: magic
* fix: y did i do this
* Fix typings for checkIfReshardingIsNeeded
* Update packages/gateway/src/manager.ts
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
* Update packages/gateway/src/manager.ts
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
* Update packages/gateway/src/manager.ts
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
* fix: checking info.firstShardId, lastShardId
* fix: checking pending shards against totalShards instead of total used shards
* fix: changing new shards' message event when trying to change old shards' message event, causing it to be unable to process those events
* ci can stop crying now
* chore: specify usaage of updateGuildsShardId
* move executing updateGuildsShardId from shard.events to shard.forwardToBot as none of those events are being executed
* remove todo
* fix: calculateTotalShards() for bots in over 100k servers that don't have LBS and update comments
* use logger.debug in updateGuildsShardId instead of logger.warn
* feat: automatic resharding
* move auto resharding into gateway.spawnShards() and clear interval on gateway.shutdown()
* fix: both old shards and new shards processing events at the same time
* Copy all shard events provided in the options to new shards instead of just the mesasge event
* Added clearReshardingInterval parameter to manager.shutdown function so reshard function doesn't end up clearing this interval
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
Co-authored-by: Fleny <fleny113@outlook.com>
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
* 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>
* 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>
* 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
* 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>
* 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>