function isOwner($user) {
        if($user instanceof \CharlotteDunois\Yasmin\Models\User || $user instanceof \CharlotteDunois\Yasmin\Models\GuildMember) {
            $user = $user->id;
        }
        
        return (\in_array($user, $this->options['owners']));
    }
function isOwner($user) {
        if($user instanceof \CharlotteDunois\Yasmin\Models\User || $user instanceof \CharlotteDunois\Yasmin\Models\GuildMember) {
            $user = $user->id;
        }
        
        return (\in_array($user, $this->options['owners']));
    }
function isOwner ( $ user ) { if ( $ user instanceof \ CharlotteDunois \ Yasmin \ Models \ User || $ user instanceof \ CharlotteDunois \ Yasmin \ Models \ GuildMember ) { $ user = $ user -> id ; } return ( \ in_array ( $ user , $ this -> options [ 'owners' ] ) ) ; }
Checks whether an user is an owner of the bot.
@param string|\CharlotteDunois\Yasmin\Models\User|\CharlotteDunois\Yasmin\Models\GuildMember  $user
@return bool
Checks whether an user is an owner of the bot .