Repository navigation
Migrate kick, ban and unban command - #196
RealYusufIsmail wants to merge 189 commits into
Conversation
|
Hi, thanks for contributing to our project! Before committing, you always have to make sure to apply our code styling using |
Zabuzard
left a comment
There was a problem hiding this comment.
A good first attempt but needs ~3 more iterations to be polished enough. Keep it up 👍
Zabuzard
left a comment
There was a problem hiding this comment.
I am telling you again to run your actual code before you push anything. Try it out locally on your private server (see the tutorials).
Your code, as it is right now, does not work and has weird UX.
Also, please do not just resolve conversations that are not resolved yet. And pay attention to push your changes before you mark anything resolved.
…ration/UnbanCommand.java Co-authored-by: Tais993 <49957334+Tais993@users.noreply.github.com>
…ration/UnbanCommand.java Co-authored-by: Tais993 <49957334+Tais993@users.noreply.github.com>
…ration/KickCommand.java Co-authored-by: Tais993 <49957334+Tais993@users.noreply.github.com>
…ration/UnbanCommand.java Co-authored-by: Tais993 <49957334+Tais993@users.noreply.github.com>
…ration/KickCommand.java Co-authored-by: Tais993 <49957334+Tais993@users.noreply.github.com>
…ration/BanCommand.java Co-authored-by: Tais993 <49957334+Tais993@users.noreply.github.com>
…ration/BanCommand.java Co-authored-by: Tais993 <49957334+Tais993@users.noreply.github.com>
…ration/KickCommand.java Co-authored-by: Tais993 <49957334+Tais993@users.noreply.github.com>
|
@Zabuzard Is there anything else i need to change? |
| /** | ||
| * @param reason The Boolean reasonLimit will check if the reason is above the provided limit. | ||
| * <br> | ||
| * If it is it will throw an error and will tell the user that the reason can not be over | ||
| * the {@link ModerationUtils#REASON_MAX_LENGTH} <br> | ||
| * If the reason is under the limit it will pass and will allow the command to continue. | ||
| * | ||
| * @return {@link ModerationUtils#REASON_MAX_LENGTH} | ||
| */ |
There was a problem hiding this comment.
- Missing description.
- Still bad javadoc in general.
- Incorrect return description
There was a problem hiding this comment.
You only addressed the first bullet point.
There was a problem hiding this comment.
What do you mean
|
For Moderation utils for the reason check should I add a IllegalArgumentException @Zabuzard |
All the checks pass and i have improved the javaDoc. Yusuf
| * This contains if statements that are common in all the moderation commands suck se the if | ||
| * statement for the reason length |
There was a problem hiding this comment.
Bad javadoc, english issues, reads super weird and is not on point. Rephrase:
Utility class offering helpers revolving around user moderation, such as banning or kicking.
| /** | ||
| * @param reason The Boolean reasonLimit will check if the reason is above the provided limit. | ||
| * <br> | ||
| * If it is it will throw an error and will tell the user that the reason can not be over | ||
| * the {@link ModerationUtils#REASON_MAX_LENGTH} <br> | ||
| * If the reason is under the limit it will pass and will allow the command to continue. | ||
| * | ||
| * @return {@link ModerationUtils#REASON_MAX_LENGTH} | ||
| */ |
There was a problem hiding this comment.
You only addressed the first bullet point.
| private static final Logger logger = LoggerFactory.getLogger(BanCommand.class); | ||
|
|
||
| /** | ||
| * Constructs an instance |
I still have to improve the javadoc in the ModerationUtils class
|
Closing in favor of #244 . |
I have added a kick, ban and unban command. I will be adding more moderation commands in the future.
For the kick command you have to do
/kick @userwere as for the ban command you have to do/ban @user del_day(int). For the unban command you will type/unban user_idPartially implements #63 and #64 .