|
|
|
@ -4,6 +4,7 @@ module.exports = async (message, toAsk, time, nofilter, timeoutResponse) => { |
|
|
|
|
try { |
|
|
|
|
let collected = await msg.channel.awaitMessages({filter: filter, max: 1, errors: ['time'], time: time}); |
|
|
|
|
collected = collected.first().content; |
|
|
|
|
if (collected.first().attachments.size) {collected = collected.first().attachments.first().url;} |
|
|
|
|
return collected; |
|
|
|
|
} catch { |
|
|
|
|
if (timeoutResponse) {message.reply("This question has timed out! Please try again.");} |
|
|
|
|