b
This commit is contained in:
parent
25f6f624a6
commit
982ff03dda
1 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
const { MessageCollector } = require('eris-collector');
|
||||
const { inspect, promisify } = require('util');
|
||||
|
||||
class Helpers {
|
||||
|
@ -23,9 +24,9 @@ class Helpers {
|
|||
return messages.last().content;
|
||||
}
|
||||
|
||||
async awaitReply (message, question, limit = 60000) {
|
||||
async awaitReply (message, input, limit = 60000) {
|
||||
const filter = (m) => m.author.id === message.author.id;
|
||||
await message.channel.createMessage(question);
|
||||
await message.channel.createMessage(input);
|
||||
|
||||
try {
|
||||
const collected = await message.channel.awaitMessages(filter, {
|
||||
|
|
Loading…
Reference in a new issue