MessageCollector.this

Class constructor.

  1. this(Channel chan, bool delegate(Message) filter, Opts[string] opts)
  2. this(Channel chan, bool delegate(Message) filter)
    class MessageCollector
    this
    (
    Channel chan
    ,
    bool delegate
    (
    Message
    )
    filter = null
    )

Parameters

chan Channel

a Channel object to listen for messages in

filter bool delegate
(
Message
)

a filter delegate that accepts a message and returns a bool; defaults to null. Example: m => m.author.id == 1234567890

Meta