public function getGuildsAttribute()
    {
        $response = $this->discord->request(
            'GET',
            $this->discord->getGuildsEndpoint(),
            $this->token
        );

        $collection = new Collection();

        foreach ($response as $raw) {
            $collection->push(
                $this->discord->buildPart(Guild::class, $this->token, $raw)
            );
        }

        return $collection;
    }
public function getGuildsAttribute()
    {
        $response = $this->discord->request(
            'GET',
            $this->discord->getGuildsEndpoint(),
            $this->token
        );

        $collection = new Collection();

        foreach ($response as $raw) {
            $collection->push(
                $this->discord->buildPart(Guild::class, $this->token, $raw)
            );
        }

        return $collection;
    }
public function getGuildsAttribute ( ) { $ response = $ this -> discord -> request ( 'GET' , $ this -> discord -> getGuildsEndpoint ( ) , $ this -> token ) ; $ collection = new Collection ( ) ; foreach ( $ response as $ raw ) { $ collection -> push ( $ this -> discord -> buildPart ( Guild :: class , $ this -> token , $ raw ) ) ; } return $ collection ; }
Gets the guilds attribute.

@return Collection Guilds.
Gets the guilds attribute .