We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c166978 commit 6c94376Copy full SHA for 6c94376
README.md
@@ -171,8 +171,7 @@ This library also supports sending webhook messages with integration from other
171
172
```java
173
public void sendWebhook(Webhook webhook) {
174
- Message message = new MessageBuilder();
175
- message.append("Hello World!");
+ MessageCreateData message = new MessageCreateBuilder().setContent("Hello World").build();
176
try (JDAWebhookClient client = JDAWebhookClient.from(webhook)) { // create a client instance from the JDA webhook
177
client.send(message); // send a JDA message instance
178
}
0 commit comments