function overwritesFor($member) {
        $member = $this->guild->members->resolve($member);
        
        $everyoneOverwrites = null;
        $memberOverwrites = null;
        $rolesOverwrites = array();
        
        foreach($this->permissionOverwrites as $overwrite) {
            if($overwrite->id === $this->guild->id) {
                $everyoneOverwrites = $overwrite;
            } elseif($overwrite->id === $member->id) {
                $memberOverwrites = $overwrite;
            } elseif($member->roles->has($overwrite->id)) {
                $rolesOverwrites[] = $overwrite;
            }
        }
        
        return array(
            'everyone' => $everyoneOverwrites,
            'member' => $memberOverwrites,
            'roles' => $rolesOverwrites
        );
    }
function overwritesFor($member) {
        $member = $this->guild->members->resolve($member);
        
        $everyoneOverwrites = null;
        $memberOverwrites = null;
        $rolesOverwrites = array();
        
        foreach($this->permissionOverwrites as $overwrite) {
            if($overwrite->id === $this->guild->id) {
                $everyoneOverwrites = $overwrite;
            } elseif($overwrite->id === $member->id) {
                $memberOverwrites = $overwrite;
            } elseif($member->roles->has($overwrite->id)) {
                $rolesOverwrites[] = $overwrite;
            }
        }
        
        return array(
            'everyone' => $everyoneOverwrites,
            'member' => $memberOverwrites,
            'roles' => $rolesOverwrites
        );
    }
function overwritesFor ( $ member ) { $ member = $ this -> guild -> members -> resolve ( $ member ) ; $ everyoneOverwrites = null ; $ memberOverwrites = null ; $ rolesOverwrites = array ( ) ; foreach ( $ this -> permissionOverwrites as $ overwrite ) { if ( $ overwrite -> id === $ this -> guild -> id ) { $ everyoneOverwrites = $ overwrite ; } elseif ( $ overwrite -> id === $ member -> id ) { $ memberOverwrites = $ overwrite ; } elseif ( $ member -> roles -> has ( $ overwrite -> id ) ) { $ rolesOverwrites [ ] = $ overwrite ; } } return array ( 'everyone' => $ everyoneOverwrites , 'member' => $ memberOverwrites , 'roles' => $ rolesOverwrites ) ; }
Returns the permissions overwrites for the given member as an associative array.

```
array(
'everyone' => \CharlotteDunois\Yasmin\Models\PermissionOverwrite|null,
'member' => \CharlotteDunois\Yasmin\Models\PermissionOverwrite|null,
'roles' => \CharlotteDunois\Yasmin\Models\PermissionOverwrite[]
)
```

@param \CharlotteDunois\Yasmin\Models\GuildMember|string  $member
@return array
@throws \InvalidArgumentException
Returns the permissions overwrites for the given member as an associative array .