function fetchUsers(int $limit = 100, string $before = '', string $after = '') {
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) use ($limit, $before, $after) {
            $query = array('limit' => $limit);
            
            if(!empty($before)) {
                $query['before'] = $before;
            }
            
            if(!empty($after)) {
                $query['after'] = $after;
            }
            
            $this->client->apimanager()->endpoints->channel
                ->getMessageReactions($this->message->channel->getId(), $this->message->id, $this->emoji->identifier, $query)
                ->done(function ($data) use ($resolve) {
                    foreach($data as $react) {
                        $user = $this->client->users->patch($react);
                        $this->users->set($user->id, $user);
                    }
                    
                    $resolve($this->users);
                }, $reject);
        }));
    }
function fetchUsers(int $limit = 100, string $before = '', string $after = '') {
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) use ($limit, $before, $after) {
            $query = array('limit' => $limit);
            
            if(!empty($before)) {
                $query['before'] = $before;
            }
            
            if(!empty($after)) {
                $query['after'] = $after;
            }
            
            $this->client->apimanager()->endpoints->channel
                ->getMessageReactions($this->message->channel->getId(), $this->message->id, $this->emoji->identifier, $query)
                ->done(function ($data) use ($resolve) {
                    foreach($data as $react) {
                        $user = $this->client->users->patch($react);
                        $this->users->set($user->id, $user);
                    }
                    
                    $resolve($this->users);
                }, $reject);
        }));
    }
function fetchUsers ( int $ limit = 100 , string $ before = '' , string $ after = '' ) { return ( new \ React \ Promise \ Promise ( function ( callable $ resolve , callable $ reject ) use ( $ limit , $ before , $ after ) { $ query = array ( 'limit' => $ limit ) ; if ( ! empty ( $ before ) ) { $ query [ 'before' ] = $ before ; } if ( ! empty ( $ after ) ) { $ query [ 'after' ] = $ after ; } $ this -> client -> apimanager ( ) -> endpoints -> channel -> getMessageReactions ( $ this -> message -> channel -> getId ( ) , $ this -> message -> id , $ this -> emoji -> identifier , $ query ) -> done ( function ( $ data ) use ( $ resolve ) { foreach ( $ data as $ react ) { $ user = $ this -> client -> users -> patch ( $ react ) ; $ this -> users -> set ( $ user -> id , $ user ) ; } $ resolve ( $ this -> users ) ; } , $ reject ) ; } ) ) ; }
Fetches all the users that gave this reaction. Resolves with a Collection of User instances, mapped by their IDs.
@param int     $limit   The maximum amount of users to fetch, defaults to 100.
@param string  $before  Limit fetching users to those with an ID smaller than the given ID.
@param string  $after   Limit fetching users to those with an ID greater than the given ID.
@return \React\Promise\ExtendedPromiseInterface
@see \CharlotteDunois\Yasmin\Models\User
Fetches all the users that gave this reaction . Resolves with a Collection of User instances mapped by their IDs .