commandWithResponse

Runs some command up to 3 times whether or not checkResponse returns true. Expects a response from BanchoBot.

  1. auto commandWithResponse(BanchoBot bot, bool delegate(Message) @(safe) nothrow checkResponse, string channel, const(char)[] message, bool ratelimit, int retries)
    @safe
    commandWithResponse
    (
    bool multiResponse = false
    )
    (,
    bool delegate @safe nothrow checkResponse
    ,
    string channel
    ,
    scope const(char)[] message
    ,,
    int retries = 3
    )
  2. auto commandWithResponse(OsuRoom room, bool delegate(Message) @(safe) nothrow checkResponse, const(char)[] message)

Throws

NoServerResponseException if the command never returned any output.

Meta