Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Fixed a little typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Adamoglou authored May 23, 2018
1 parent f2c4992 commit ecd9305
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void startup(){
}
```

This would result in the message "Discord's ready!" being printed out in the console after the connection to Discord has been established.
This would result in the message "Welcome User#1234!" being printed out in the console after the connection to Discord has been established, and fitted with the users username and discriminator.

### Step 2
To allow callbacks to be fired, you have to periodically call the method ``DiscordRPC.runCallbacks();``. Otherwise, no callbacks will be passed
Expand All @@ -91,14 +91,14 @@ To update the Rich Presence of a player, a ``DiscordRichPresence`` Object is req
EventHandler is created, by using a Builder:
```java
public void createNewPresence(){
DiscordRichPresence rich = new DiscordRichPresence.Builder("This is the current state.).setDetails("These are some details.").build();
DiscordRichPresence rich = new DiscordRichPresence.Builder("This is the current state.").setDetails("These are some details.").build();
}
```
After the Object has been created, it simply has to be passed to the DiscordRPC with the methods ``DiscordRPC.updatePresence(DiscordRichPresence);``

```java
public void createNewPresence(){
DiscordRichPresence rich = new DiscordRichPresence.Builder("This is the current state.).setDetails("These are some details.").build();
DiscordRichPresence rich = new DiscordRichPresence.Builder("This is the current state.").setDetails("These are some details.").build();
DiscordRPC.updatePresence(rich);
}
```
Expand Down

0 comments on commit ecd9305

Please sign in to comment.