Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Release 4.0.0-beta.4 #157

Merged
merged 40 commits into from
Jan 12, 2025
Merged

Release 4.0.0-beta.4 #157

merged 40 commits into from
Jan 12, 2025

Conversation

Kaktushose
Copy link
Owner

No description provided.

Kaktushose and others added 30 commits April 24, 2024 17:54
* Refactor part of reflect package and JDACommands.java

* fix compile errors and unit tests

* fix incorrect java version in ci

* bump jacoco version

* remove isActive functionality

* fix auto complete dispatching

* move parameter validation to helper methods

* Make AutoCompleteDefinition and SlashCommandDefinition immutable

* Refactor tree

* fix unit tests

* make getComponent methods accessible again

* fix CommandTree printing

* remove unnecessary generic type from GenericEvent

* fix unit tests

* unify functional interfaces

* refactor reply

* change Helpers class and fix unit tests

* formatting

* formatting

---------

Co-authored-by: Kaktushose <42280757+Kaktushose@users.noreply.github.com>
* first pass on VirtualThread refactor

* refactor CommandDispatcher

* prepare Dispatchers for refactoring and reimplement AutoCompleteDispatcher

* Make Runtime closeable

* Add Event abstraction over jda and EventHandlers for command and autocomplete

* introduce new ExecutionContext and simplify CommandHandler

* Use new ExecutionContext in middleware and adapters, restructure EventHandler

* Delete JDa Event wrapper

* remove CommandExecutionContext.java and remove context from type adapting flow

* delete old files

* fix type errors

* move method invoke to definition classes

* Move classes out of refactor sub package

* Refactor ExecutionContext and stuff

* fix wrong middleware priority

* Add KeyValueStore and missing package-info.java files

* Add KeyValueStore and missing package-info.java files

* Fix double method arguments

* Reduce generics complexity

* Refactor MiddlewareRegistry

* Split ExecutionContext.java

* refactor event classes and reply logic

* fix middleware order bug

* make components attachable again

* reimplement replyModal

* first pass on ButtonHandler

* seal EventHandler

* seal EventHandler

* Merge InvocationContext and Invocation

* refactor reply api

* Add getter for JDA Events in Event

* make "No interaction found" error message less ambiguous

* Refactor reply system (#142)

* make reply methods return Message object and reimplement keep components

* remove latest reply from runtime

* replace ephemeral boolean flag with ReplyConfig and introduce GlobalReplyConfig

* write unit tests for new ReplyConfig helper method and fix old unit tests

* simplify switch

* Hopefully fix middleware priorities

* Move HandlerContext out of InvocationContext

* Move InstanceSupplier out of InvocationContext

* bump code

* Explicitly state dispatching user api

* Yes..

* fully implement modals and components

* first pass on static components

* Fix static components, refactor component reply

* improve error handling

* Remove unused method

* Add docs for context, handling and Runtime

* fix custom id bugs

* write documentation

* more documentation and simplify component reply

* even more documentation

* even more documentation

* formatting

* add missing method

* fix component bug

* more documentation

* small docs fix

* Add logging for EventHandler, JDAEventListener and Runtime

* Add ExpirationStrategy

* stuff

* refactor package structure

* add docs for ExpirationStrategy

* Expose dispatching package

* Add jda javadoc reference to maven java doc plugin

* Update src/main/java/com/github/kaktushose/jda/commands/annotations/interactions/Interaction.java

Co-authored-by: Nick Hensel <47005420+Goldmensch@users.noreply.github.com>

* Update src/main/java/com/github/kaktushose/jda/commands/annotations/Implementation.java

Co-authored-by: Nick Hensel <47005420+Goldmensch@users.noreply.github.com>

* Update src/main/java/com/github/kaktushose/jda/commands/dispatching/events/ReplyableEvent.java

Co-authored-by: Nick Hensel <47005420+Goldmensch@users.noreply.github.com>

* Update src/main/java/com/github/kaktushose/jda/commands/dispatching/reply/MessageReply.java

Co-authored-by: Nick Hensel <47005420+Goldmensch@users.noreply.github.com>

* Update src/main/java/com/github/kaktushose/jda/commands/dispatching/handling/EventHandler.java

Co-authored-by: Nick Hensel <47005420+Goldmensch@users.noreply.github.com>

* improve docs

* remove generic in getSelectMenu

* rename Components to Component

* update documentation

* update documentation

* update lastActivity

* Add flowchart picture and introduce javadoc directory

* resolve review

* Add examples

---------

Co-authored-by: Nick Hensel <nickhensel25@icloud.com>
Co-authored-by: Nick Hensel <47005420+Goldmensch@users.noreply.github.com>
* first pass on new definition api

* make interaction interfaces records and first pass on new registry

* update records

* fix invocation context

* add missing parameter methods

* rename

* add reflection wrapper

* add reflective descriptor

* update definitions

* update definitions

* fix shit ton of compile errors

* cleanup

* formatting

* remove since tag

* update documentation

* fix unit tests

* extract reflections out of InteractionRegistry

* Use Iterable instead of List and introduce CustomId#independent

* Restructure Definitions package and separate Context and SlashCommand

* remove Permissions feature interface

* Forbid Definition#invoke by user and fix bug in CustomID

* javadocs

* Yeah..

* docs

* more javadoc

* formatting

* fix java tests

* fix java tests

* fix wrong annotation

* fix codacy

* small changes

---------

Co-authored-by: Kaktushose <42280757+Kaktushose@users.noreply.github.com>
Co-authored-by: Kaktushose <faulie50@gmail.com>
* Add builder and move some registries to internal

* Add docs and remove unnecessary methods

* a

* Fix merge conflict

* Things

* Clean up Registries

* Rename registries

* Add docs

* Fix tests

* Fix list

* Add global reply config

* fix unit tests

* stuff

* Add additionally docs, expose ClassFinder default implementations via static methods and make Descriptions fully immutable

* Fix merge conflicts

* Make org.jetbrains.annotations transitive

* Add @NotNull

* Fix constraint parameter types

* Resolve review

* fix unit tests

---------

Co-authored-by: Kaktushose <42280757+Kaktushose@users.noreply.github.com>
* update workflow

* update workflow

* use aggregate goal instead of javadoc

* add java setup

* update workflows

* update workflow

* update workflow

* update workflow

* update workflow

* add legacy branch creation

* test

* test final

* clean up

---------

Co-authored-by: Nick Hensel <nickhensel25@icloud.com>
@Kaktushose Kaktushose self-assigned this Jan 12, 2025
@Kaktushose Kaktushose merged commit b31d38d into main Jan 12, 2025
7 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants