Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Commit 4ceaece

Browse files
authored
Merge pull request #667 from SamOphis/fix/readme
Change Message#reply in README to Message#respond
2 parents 4058367 + 1e093b2 commit 4ceaece

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final Catnip catnip = Catnip.catnip("your token goes here");
5858
catnip.observable(DiscordEvent.MESSAGE_CREATE)
5959
.filter(msg -> msg.content().equals("!ping"))
6060
.subscribe(msg -> {
61-
msg.reply("pong!");
61+
msg.respond("pong!");
6262
}, error -> error.printStackTrace());
6363
catnip.connect();
6464
```
@@ -73,7 +73,7 @@ catnip.observable(DiscordEvent.MESSAGE_CREATE)
7373
.filter(msg -> msg.content().equals("!ping"))
7474
.subscribe(msg -> {
7575
long start = System.currentTimeMillis();
76-
msg.reply("pong!")
76+
msg.respond("pong!")
7777
.subscribe(ping -> {
7878
long end = System.currentTimeMillis();
7979
ping.edit("pong! (took " + (end - start) + "ms).");
@@ -89,7 +89,7 @@ Catnip.catnipAsync("your token here").subscribe(catnip -> {
8989
catnip.observable(DiscordEvent.MESSAGE_CREATE)
9090
.filter(msg -> msg.content().equals("!ping"))
9191
.subscribe(msg -> {
92-
msg.reply("pong!");
92+
msg.respond("pong!");
9393
}, error -> error.printStackTrace());
9494
catnip.connect();
9595
});

0 commit comments

Comments
 (0)