Function BanchoBot.waitForMessageBunch

Waits for multiple messages sent at once and returns them.

Message[] waitForMessageBunch (
  bool delegate(Message) check,
  core.time.Duration timeout,
  core.time.Duration totalTimeout = dur(5L),
  core.time.Duration inbetweenTimeout = dur(300L)
);

Parameters

NameDescription
check delegate to check if the message matches expectations (author, channel, etc)
timeout timeout to wait for first message
totalTimeout total time to spend starting waiting for messages
inbetweenTimeout timeout for a message after the first message. totalTimeout + inbetweenTimeout is the maximum amount of time this function runs.