mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Simplified awaitResponse
This commit is contained in:
@@ -25,10 +25,7 @@ client.on("message", m => {
|
||||
}
|
||||
|
||||
if (m.content === "ask me a question") {
|
||||
|
||||
m.reply("do you like polar bears?");
|
||||
|
||||
client.awaitResponse(m).then(newMsg => {
|
||||
client.awaitResponse(m, "do you like polar bears?").then(newMsg => {
|
||||
newMsg.reply("I see! you said " + newMsg.content);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user