javadiscord / java-discord-api

A wrapper over the discord API to create bots using Java
GNU General Public License v3.0
7 stars 8 forks source link

Added support for @Inject to work on constructors #155

Closed surajkumar closed 1 month ago

surajkumar commented 1 month ago

Alongside adding @Inject to fields, you can also now add it to constructors.

Example:

public class ChatGPTCommand {
    private final ChatGPT chatGPT;

    @Inject
    public ChatGPTCommand(ChatGPT chatGPT) {
        this.chatGPT = chatGPT;
    }

...
sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud