BanchoBot.waitForMessageBunch

Waits for multiple messages sent at once and returns them.

class BanchoBot
waitForMessageBunch
(
bool delegate @safe nothrow check
,
Duration timeout
,
Duration totalTimeout = 5.seconds
,
Duration inbetweenTimeout = 300.msecs
)

Parameters

check bool delegate @safe nothrow

delegate to check if the message matches expectations (author, channel, etc)

timeout Duration

timeout to wait for first message

totalTimeout Duration

total time to spend starting waiting for messages

inbetweenTimeout Duration

timeout for a message after the first message. totalTimeout + inbetweenTimeout is the maximum amount of time this function runs.

Meta