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

Commit bf659d3

Browse files
authored
Update functions.js
Fixed `awaitReply`, was assigning not comparing author ID's
1 parent 3dab8ea commit bf659d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/functions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = (client) => {
3838
3939
*/
4040
client.awaitReply = async (msg, question, limit = 60000) => {
41-
const filter = m=>m.author.id = msg.author.id;
41+
const filter = m => m.author.id === msg.author.id;
4242
await msg.channel.send(question);
4343
try {
4444
const collected = await msg.channel.awaitMessages(filter, { max: 1, time: limit, errors: ["time"] });

0 commit comments

Comments
 (0)