diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 619cd6b805..0000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -name: Bug Report -about: Found bug that needs to be fixed? ---- - - - - - -[download]: https://bintray.com/dv8fromtheworld/maven/JDA/_latestVersion -[guild]: https://discord.gg/0hMr4ce0tIk3pSjp -[stack overflow]: https://stackoverflow.com/questions/tagged/java - -## General Troubleshooting - - - -- [ ] I have checked for similar issues. -- [ ] I have updated to the [latest JDA version][download]. -- [ ] I have checked the branches or the maintainers' PRs for upcoming bug fixes. - - - -## Bug Report - - - -### Expected Behavior - - - -### Code Example or Reproduction Steps - - - -### Code for JDABuilder or DefaultShardManagerBuilder Used - - - -### Exception or Error - - diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000000..33e1778a22 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,67 @@ +name: Bug Report +description: Found a Bug that needs to be fixed? +body: +- type: markdown + attributes: + value: |- + Please join the [Discord Server](https://discord.gg/0hMr4ce0tIl3SLv5) for questions or ask them in [our Discussions](https://github.com/DV8FromTheWorld/JDA/discussions). + + Keep in mind that this isn't the place to learn Java. + Please head over to [StackOverflow](https://stackoverflow.com/questions/tagged/java) for your general programming questions. +- type: checkboxes + attributes: + label: General Troubleshooting + description: You confirm to have made the following checks first. + options: + - label: I have checked for similar issues on the Issue-tracker. + required: true + - label: I have updated to the [latest JDA version](https://ci.dv8tion.net/job/JDA/lastSuccessfulBuild/) + required: true + - label: I have checked the branches or the maintainers' PRs for upcoming bug fixes. + required: true +- type: textarea + attributes: + label: "Expected Behaviour" + description: "What did you expect JDA to do?" + placeholder: "JDA should do ..." + validations: + required: true +- type: textarea + attributes: + label: "Code Example for Reproduction Steps" + description: |- + Please add the code you use to reproduce this problem. + Make sure to remove or replace any sensitive data like your Bot's token. + Leave this empty or put "N/A" if you don't have a reproducible setup. + + The provided text will be rendered as Java code, so you don't have to provide a Code block for it. + render: java + placeholder: |- + public void causeError() { + throw new Exception("Error!"); + } + validations: + required: true +- type: textarea + attributes: + label: "Code for JDABuilder or DefaultShardManagerBuilder used" + description: |- + Please provide the code used to create your JDA or ShardManager instance. + Make sure to remove or replace any sensitive data like your Bot's token. + + The provided text will be rendered as Java code, so you don't have to provide a Code block for it. + render: java + placeholder: 'JDA jda = JDABuilder.createDefault("token").build();' + validations: + required: true +- type: textarea + attributes: + label: "Exception or Error" + description: |- + Share any Exception or Error you encountered. + Make sure to put it into a code block for better formatting. + Leave this blank or put "N/A" if you don't have an Exception or Error. + + The provided text will be rendered as code, so you don't have to provide a Code block for it. + render: yesyes # Unknown code-names = no highlighting. + placeholder: "java.lang.NullPointerException: null" diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 51b9fc1af8..9312f2209a 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -15,3 +15,6 @@ contact_links: - name: Releases url: https://github.com/DV8FromTheWorld/JDA/releases about: You can find the latest releases here on GitHub and on Bintray. + - name: Questions + url: https://github.com/DV8FromTheWorld/JDA/discussions + about: You can ask questions about JDA and find useful information in our Discussions. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 01f9bc63e7..0000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -name: Feature Request -about: Request a new feature ---- - - - - - -[download]: https://bintray.com/dv8fromtheworld/maven/JDA/_latestVersion -[guild]: https://discord.gg/0hMr4ce0tIk3pSjp -[stack overflow]: https://stackoverflow.com/questions/tagged/java - -## General Troubleshooting - - - -- [ ] I have checked for similar issues. -- [ ] I have updated to the [latest JDA version][download]. -- [ ] I have checked the branches or the maintainers' PRs for upcoming features. - - - -## Feature Request - - - -### Example Use-Case - - - diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000000..d41e5bb9c1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,37 @@ +name: Feature Request +description: Request a new feature +body: +- type: markdown + attributes: + value: |- + Please join the [Discord Server](https://discord.gg/0hMr4ce0tIl3SLv5) for questions or ask them in [our Discussions](https://github.com/DV8FromTheWorld/JDA/discussions). + + Keep in mind that this isn't the place to learn Java. + Please head over to [StackOverflow](https://stackoverflow.com/questions/tagged/java) for your general programming questions. +- type: checkboxes + attributes: + label: General Troubleshooting + description: You confirm to have made the following checks first. + options: + - label: I have checked for similar issues on the Issue-tracker. + required: true + - label: I have updated to the [latest JDA version](https://ci.dv8tion.net/job/JDA/lastSuccessfulBuild/) + required: true + - label: I have checked the branches or the maintainers' PRs for upcoming features. + required: true +- type: textarea + attributes: + label: "Feature Request" + description: "Provide a small description of the feature you want to have added." + placeholder: "JDA should get ..." + validations: + required: true +- type: textarea + attributes: + label: "Example Use-Case" + description: |- + Provide some code or describe a possible use-case for this feature. + + The provided text will be rendered as Java code, so you don't have to provide a Code block for it. + placeholder: "public void newAwesomeMethod(){}" + render: java diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md deleted file mode 100644 index 4db6987f0d..0000000000 --- a/.github/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -name: Question -about: Use this template to ask a question regarding JDA (Joining the Discord first is highly recommended) ---- - - - -[download]: https://bintray.com/dv8fromtheworld/maven/JDA/_latestVersion -[guild]: https://discord.gg/0hMr4ce0tIk3pSjp -[wiki]: https://github.com/DV8FromTheWorld/JDA/wiki -[FAQ]: https://github.com/DV8FromTheWorld/JDA/wiki/10%29-FAQ - -## General Troubleshooting - - - -- [ ] I have checked for similar issues. -- [ ] I have updated to the [latest JDA version][download] -- [ ] I have checked the [wiki] and especially the [FAQ] section for similar questions. - - - -## Question - - - -## Example Code - -