Skip to content

Conversation

@yannicklamprecht
Copy link
Collaborator

Checklist

  • I made changes to commands

    • I fully localised the command
    • I fully checked the commands functionality
  • I added new localisation codes

    • I fully translated it for all languages
    • I sorted properties alphabetically
  • I made changes to the database

    • I added my changed to a patch file
    • I made sure my database was up to date
    • I checked that the migration works
  • I made changes to internal structure

Short Description
Generated Javadoc

Detailed Description

Closes #

@yannicklamprecht yannicklamprecht changed the base branch from main to dev December 14, 2024 15:55
@yannicklamprecht yannicklamprecht force-pushed the task/gen-javadoc branch 22 times, most recently from 090ca97 to 511bd27 Compare December 14, 2024 21:00
@yannicklamprecht yannicklamprecht marked this pull request as ready for review December 14, 2024 21:11
@yannicklamprecht yannicklamprecht enabled auto-merge (squash) December 14, 2024 21:12
Comment on lines +26 to +52
/**
* Returns the result type of this analyzer result.
*
* @return the result type, which is always {@link ResultType#NO_MATCH}
*/
@Override
public ResultType resultType() {
return ResultType.NO_MATCH;
}

/**
* Converts this analyzer result to a snapshot.
*
* @return this analyzer result as a snapshot
*/
@Override
public ResultSnapshot toSnapshot() {
return this;
}

/**
* Adds this analyzer result to the provided embed builder.
*
* @param guild the guild where the result was generated
* @param entry the result entry
* @param builder the localized embed builder to add the result to
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure that documenting overridden methods again provides much value.

Comment on lines +36 to +41
/**
* Handles the slash command interaction event.
*
* @param event the SlashCommandInteractionEvent
* @param context the EventContext
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here and for all other command handlers. No need to document overrides

Comment on lines +19 to +21
/**
* Handler for the "add reaction" slash command, which adds a reaction to a message.
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong

Comment on lines +54 to +58
/**
* Handles the event when the bot joins a guild.
*
* @param event the GuildJoinEvent
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to document methods overridden from the ListenerAdapter

Comment on lines +104 to +108
/**
* Handles the message deletion event.
*
* @param event the message deletion event
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here with overrides

Comment on lines +137 to +141
/**
* Handles the event when a reaction emoji is removed from a message.
*
* @param event the message reaction remove emoji event
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might tend to repeat myself. Will not do it for future listeners

*/
@SuppressWarnings("unused")
public static final class Pastel {
/**
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether comments here add actual value to readability of the code.

yannicklamprecht and others added 3 commits February 26, 2025 21:39
Co-authored-by: Lilly Tempest <46890129+rainbowdashlabs@users.noreply.github.com>
…java

Co-authored-by: Lilly Tempest <46890129+rainbowdashlabs@users.noreply.github.com>
Co-authored-by: Lilly Tempest <46890129+rainbowdashlabs@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants