Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added setPresence to ShardManager and improved documentation consistency #811

Merged
merged 3 commits into from
Nov 17, 2018

Conversation

averen
Copy link
Contributor

@averen averen commented Oct 17, 2018

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

This PR adds ShardManager#setPresence(OnlineStatus, Game) and ShardManager#setPresenceProvider(IntFunction<OnlineStatus>, IntFunction<Game>) for convenience to update both fields in a single method and status update. I also improved the documentation of ShardManager to follow the Structure Guide.

Copy link
Member

@MinnDevelopment MinnDevelopment left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -930,11 +944,11 @@ default VoiceChannel getVoiceChannelById(final String id)
*
* <p>This will also change the game for shards that are created in the future.
*
* @param game
Copy link
Collaborator

Choose a reason for hiding this comment

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

As far as I know, we always use 2 spaces after @param even if it isn't strictly necessary.

@MinnDevelopment MinnDevelopment added this to the Upcoming Release milestone Nov 17, 2018
@MinnDevelopment MinnDevelopment merged commit a7300b4 into discord-jda:development Nov 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants