function isRecipient($user) {
        $user = $this->client->users->resolve($user);
        return $this->recipients->has($user->id);
    }
function isRecipient($user) {
        $user = $this->client->users->resolve($user);
        return $this->recipients->has($user->id);
    }
function isRecipient ( $ user ) { $ user = $ this -> client -> users -> resolve ( $ user ) ; return $ this -> recipients -> has ( $ user -> id ) ; }
Determines whether a given user is a recipient of this channel.
@param \CharlotteDunois\Yasmin\Models\User|string  $user  The User instance or user ID.
@return bool
@throws \InvalidArgumentException
Determines whether a given user is a recipient of this channel .