function setAwaiting(\CharlotteDunois\Livia\Commands\Context $context, $value = null) {
        if(isset($this->awaiting[$context->message->author->id.'-'.$context->message->channel->id])) {
            throw new \RuntimeException('Context is already awaiting');
        }
        
        $this->awaiting[$context->message->author->id.'-'.$context->message->channel->id] = $value;
    }
function setAwaiting(\CharlotteDunois\Livia\Commands\Context $context, $value = null) {
        if(isset($this->awaiting[$context->message->author->id.'-'.$context->message->channel->id])) {
            throw new \RuntimeException('Context is already awaiting');
        }
        
        $this->awaiting[$context->message->author->id.'-'.$context->message->channel->id] = $value;
    }
function setAwaiting ( \ CharlotteDunois \ Livia \ Commands \ Context $ context , $ value = null ) { if ( isset ( $ this -> awaiting [ $ context -> message -> author -> id . '-' . $ context -> message -> channel -> id ] ) ) { throw new \ RuntimeException ( 'Context is already awaiting' ) ; } $ this -> awaiting [ $ context -> message -> author -> id . '-' . $ context -> message -> channel -> id ] = $ value ; }
Sets the awaiting context for the message with an optional value.
@param \CharlotteDunois\Livia\Commands\Context  $context
@param mixed                                    $value
@return void
@throws \RuntimeException  Thrown if the context is already awaiting.
Sets the awaiting context for the message with an optional value .