question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Describe the bug Typo in README

Source Readme

Error

public void startup(){
  DiscordEventHandlers handlers = new DiscordEventHandler.Build().setReadyEventHandler((user) -> {
      System.out.println("Welcome " + user.username + "#" + user.discriminator + "!");
  }).build();
  DiscordRPC.initialize("1234567890", handler, true);
}

->

public void startup(){
  DiscordEventHandlers handlers = new DiscordEventHandler.Build().setReadyEventHandler((user) -> {
      System.out.println("Welcome " + user.username + "#" + user.discriminator + "!");
  }).build();
  DiscordRPC.initialize("1234567890", handlers, true);
}

or

public void startup(){
  DiscordEventHandlers handler = new DiscordEventHandler.Build().setReadyEventHandler((user) -> {
      System.out.println("Welcome " + user.username + "#" + user.discriminator + "!");
  }).build();
  DiscordRPC.initialize("1234567890", handler, true);
}

Versions (Must be completed):

  • OS Ver: No
  • Java Version: No
  • Library Version: Master branch

Additional info Typo in readme

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
noobidevcommented, May 9, 2020

@DeJayDev… Also change new DiscordEventHandler.Build() to new DiscordEventHandlers.Builder() because the class is named DiscordEventHandlers.

1reaction
noobidevcommented, May 9, 2020

And it should be new DiscordEventHandlers.Builder() because the inner class is Builder and not Build

Read more comments on GitHub >

github_iconTop Results From Across the Web

typo/README.md at master · browserslist/typo - GitHub
Package to help in popular typo: browserlist instead of browserslist - typo/README.md at master · browserslist/typo.
Read more >
github - Should I submit a pull request to correct minor typos in ...
Having multiple typos in a README, assuming they are real typos and not regional spelling differences, is less than ideal, ...
Read more >
Error Pages - ReadMe Documentation
Say your product pops up an error code. You can be extra helpful, and easily link from that error code to a documentation...
Read more >
Typo error in README.md file [#3303567] | Drupal.org
This patch resolves the typing error from the README.md file. Patch is works fine for me. This issue can be move in RTBC....
Read more >
Correct a typo in README.md - Merge requests - KDE Invent
An error occurred while retrieving approval data for this merge request. Correct a typo in README.md. Code. Review changes. Check out branch ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found