Skip to content

Verbose logging triggers wrongly #13

@Phoenix-Starlight

Description

@Phoenix-Starlight

Describe the bug
Verbose logging fires incorrectly and logs messages about methods not being annotated, even though they are annotated.

To Reproduce
Steps to reproduce the behavior:

  1. Create a slash command class
public class Ping {
    @HandleSlash(name = "ping", desc = "Ping the bot")
    public static void pingCommand(SlashCommandCreateEvent event) {
        event
            .getSlashCommandInteraction()
            .createImmediateResponder()
            .setContent("Pong!")
            .respond();
    }
}
  1. Enable verbose logging in KCommando configuration.
  2. Annotate with HandleSlash
  3. Execute the project
  4. See The skipped methods at bot_test.commands.slash.Ping: (They don't have any appropriate annotation)

Expected behavior
It shouldn't log this message unless it is wrong. (Not annotated)

Versions
Your current JDA, Reflections8 and KCommando versions.
Javacord 3.8.0
KCommando 5.1.0
Reflections8: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions