src/Objects/Message.php
public function isType($type)
    {
        if ($this->has(strtolower($type))) {
            return true;
        }

        return $this->detectType() === $type;
    }
public function isType($type)
    {
        if ($this->has(strtolower($type))) {
            return true;
        }

        return $this->detectType() === $type;
    }
public function isType ( $ type ) { if ( $ this -> has ( strtolower ( $ type ) ) ) { return true ; } return $ this -> detectType ( ) === $ type ; }
Determine if the message is of given type

@param string         $type

@return bool
Determine if the message is of given type