function getLastMessage() {
        if(!empty($this->lastMessageID) && $this->messages->has($this->lastMessageID)) {
            return $this->messages->get($this->lastMessageID);
        }
        
        return null;
    }
function getLastMessage() {
        if(!empty($this->lastMessageID) && $this->messages->has($this->lastMessageID)) {
            return $this->messages->get($this->lastMessageID);
        }
        
        return null;
    }
function getLastMessage ( ) { if ( ! empty ( $ this -> lastMessageID ) && $ this -> messages -> has ( $ this -> lastMessageID ) ) { return $ this -> messages -> get ( $ this -> lastMessageID ) ; } return null ; }
Gets the last message in this channel if cached, or null.
@return \CharlotteDunois\Yasmin\Models\Message|null
Gets the last message in this channel if cached or null .