Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BalaM314 committed Feb 2, 2024
1 parent 7c0808e commit 749c1e6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ client.send(embed)
.thenAccept((message) -> System.out.printf("Message with embed has been sent [%s]%n", message.getId()));

// Change appearance of webhook message
WebhookMessageBuilder builder = new WebhookMessageBuilder();
builder.setUsername("Minn"); // use this username
builder.setAvatarUrl(avatarUrl); // use this avatar
builder.setContent("Hello World");
client.send(builder.build());
WebhookMessage message = new WebhookMessageBuilder()
.setUsername("Minn"); // use this username
.setAvatarUrl(avatarUrl); // use this avatar
.setContent("Hello World");
.build();
client.send(message);
```

## Threads
Expand Down

0 comments on commit 749c1e6

Please sign in to comment.