{"id":25429103,"url":"https://github.com/mluizaa00/jda-framework","last_synced_at":"2025-09-21T17:41:14.793Z","repository":{"id":173093899,"uuid":"318009915","full_name":"mluizaa00/jda-framework","owner":"mluizaa00","description":"Annotation based JDA Command Framework.","archived":false,"fork":false,"pushed_at":"2022-01-13T00:06:16.000Z","size":103,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T23:51:09.287Z","etag":null,"topics":["java","jda","jda-framework"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mluizaa00.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-02T22:36:42.000Z","updated_at":"2022-08-10T01:16:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b310419-bdad-42e7-bb72-f5a5329c7646","html_url":"https://github.com/mluizaa00/jda-framework","commit_stats":null,"previous_names":["mluizaa00/jda-framework"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mluizaa00/jda-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mluizaa00%2Fjda-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mluizaa00%2Fjda-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mluizaa00%2Fjda-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mluizaa00%2Fjda-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mluizaa00","download_url":"https://codeload.github.com/mluizaa00/jda-framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mluizaa00%2Fjda-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276278091,"owners_count":25615185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","jda","jda-framework"],"created_at":"2025-02-17T01:50:13.848Z","updated_at":"2025-09-21T17:41:14.785Z","avatar_url":"https://github.com/mluizaa00.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/mluizaa00/jda-framework.svg)](https://jitpack.io/#mluizaa00/jda-framework)\n# jda-framework\n\nHello! Welcome to the jda-framework repository.\n\n## Creating your first command\n\nThis framework uses the annotation **@Command** to register a command.\nIt can register the name, aliases, permissions and role.\n\nExample: \n````java\n    @Command(\n      name = \"ping\",\n      aliases = \"pong\",\n      permissions = Permission.ADMINISTRATOR,\n      role = 773622683450736672L\n    )\n    public void handlePingCommand(final Message context, final String[] args) {\n        final TextChannel channel = context.getTextChannel();\n        channel.sendMessage(\"Pong!\").queue();\n    }\n````\n\n\n***\n\n## Registring the CommandFrame:\n\nAfter creating all your commands, the only thing you need to do is create a **CommandFrame** and set your prefix! \n\nThe CommandFrame simplifies your life! It registers all commands and catch the event when a command is used.\n\nExample:\n\n```java\n   final CommandFrame frame = AbstractCommandFrame.builder()\n     .addPrefixes(\"!\", \"-\")\n     .build();\n\n   frame.loadCommands(new PingCommand());\n   frame.build(jda);\n```\n\n\n***\n\n## MessageHolder\n\nThe MessageHolder holds the messages for errors when using a **Command** such as:\n* No permission\n* No role \n\nTo use it, you just need to use the method below **before** the frame.build method.\n\nExample:\n\n```java\nframe.getMessageHolder().setMessage(MessageType.LACK_PERM_MESSAGE, \"Custom message!\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmluizaa00%2Fjda-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmluizaa00%2Fjda-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmluizaa00%2Fjda-framework/lists"}